Interface OffsetWorld


@NullMarked public interface OffsetWorld
Adapter interface representing a world in a Minecraft server.

The name does NOT imply that an offset was already applied. It refers to any World object in the different platforms.

  • Method Details

    • getUuid

      UUID getUuid()
    • getName

      String getName()
      Get the name of the world.
      Returns:
      Example world or world_nether.
    • getKey

      String getKey()
      Get the key of the world.
      Returns:
      Example minecraft:overworld or minecraft:the_nether.
    • getCoordinateScale

      Double getCoordinateScale()
      Get the scaling factor for this world. This is used to scale the offset by the world's size. Offsets are divided by this factor. For example, the default nether has a scaling factor of 8.
      Returns:
      Scaling factor for this world.
    • getPlatformPlayerObject

      Object getPlatformPlayerObject()
      Get the underlying platform-specific player object, for example a Bukkit World.