Package com.plotsquared.core.location
Class UncheckedWorldLocation
java.lang.Object
com.plotsquared.core.location.BlockLoc
com.plotsquared.core.location.Location
com.plotsquared.core.location.UncheckedWorldLocation
- All Implemented Interfaces:
Comparable<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
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic @NonNull UncheckedWorldLocation
Construct a new location with yaw and pitch equal to 0Get the name of the world this location is inMethods inherited from class com.plotsquared.core.location.Location
add, at, at, at, at, at, at, at, compareTo, equals, getBlockVector3, getChunkLocation, getEuclideanDistance, getEuclideanDistanceSquared, getOwnedPlot, getOwnedPlotAbs, getPitch, getPlot, getPlotAbs, getPlotArea, getWorld, getX, getY, getYaw, getZ, hashCode, isPlotArea, isPlotRoad, isUnownedPlotArea, subtract, toMBR, toString, withPitch, withWorld, withX, withY, withYaw, withZ
Methods inherited from class com.plotsquared.core.location.BlockLoc
fromString
-
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
- Worldx
- X coordinatey
- Y coordinatez
- Z coordinate- Returns:
- New location
- Since:
- 6.9.0
-
getWorldName
Description copied from class:Location
Get the name of the world this location is in- Overrides:
getWorldName
in classLocation
- Returns:
- World name
-