Interface Location
- All Superinterfaces:
DataSerializable
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic Location.Builderbuilder()Location coordinates.Getting aServerLocationgetWorld()Getting aServerWorldbooleanTeleporting an entity to this location.static Locationstatic Locationstatic Locationof(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.
-