Class UncheckedWorldLocation

All Implemented Interfaces:
Comparable<Location>

@DoNotUse public final class UncheckedWorldLocation extends Location
Used internally for generation to reference locations in worlds that "don't exist yet". There is no guarantee that the world name provided by getWorldName() exists on the server.
Since:
6.9.0
  • Method Details

    • at

      @DoNotUse public static @NonNull UncheckedWorldLocation at(@NonNull String world, int x, int y, int z)
      Construct a new location with yaw and pitch equal to 0
      Parameters:
      world - World
      x - X coordinate
      y - Y coordinate
      z - Z coordinate
      Returns:
      New location
      Since:
      6.9.0
    • at

      @DoNotUse public static @NonNull UncheckedWorldLocation at(@NonNull String world, BlockVector3 loc)
      Construct a new location with yaw and pitch equal to 0
      Parameters:
      world - World
      loc - Coordinates
      Returns:
      New location
      Since:
      7.0.0
    • getWorldName

      @DoNotUse public @NonNull String getWorldName()
      Description copied from class: Location
      Get the name of the world this location is in
      Overrides:
      getWorldName in class Location
      Returns:
      World name