Interface Location
- All Superinterfaces:
DataSerializable
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic Location.Builder
builder()
Location coordinates.Getting aServerLocation
getWorld()
Getting aServerWorld
boolean
Teleporting an entity to this location.static Location
static Location
static Location
of
(ServerLocation location) worldKey()
The identifier of the world to which the location belongs.Methods inherited from interface org.spongepowered.api.data.persistence.DataSerializable
contentVersion, toContainer
-
Method Details
-
builder
-
of
-
of
-
of
-
worldKey
ResourceKey worldKey()The identifier of the world to which the location belongs. -
getPosition
Position getPosition()Location coordinates. -
getServerLocation
Optional<ServerLocation> getServerLocation()Getting aServerLocation
-
getWorld
Optional<ServerWorld> getWorld()Getting aServerWorld
-
moveHere
Teleporting an entity to this location. Returns false if teleportation is unsuccessful or impossible.
-