public interface RespawnLocationData extends MappedData<UUID,RespawnLocation,RespawnLocationData,ImmutableRespawnLocation>
DataManipulator for the "respawn" location of a Player. A
Player may have multiple respawn locations, but can only have a
single respawn location per World.| Modifier and Type | Method and Description |
|---|---|
default Optional<RespawnLocation> |
getForWorld(World world)
Gets the respawn location for the given world, if available.
|
default MapValue<UUID,RespawnLocation> |
respawnLocation()
Gets the
MapValue for the "respawn" locations set for various
World.getUniqueId() such that a Player may not have a
respawn point for a particular World, but may have multiple
respawn points for other Worlds. |
asMap, get, getMapKeys, getMapValue, getMapValues, put, putAll, removeasImmutable, copy, fill, fill, from, set, set, set, set, transformgetContentVersion, toContainerdefault MapValue<UUID,RespawnLocation> respawnLocation()
MapValue for the "respawn" locations set for various
World.getUniqueId() such that a Player may not have a
respawn point for a particular World, but may have multiple
respawn points for other Worlds.Keys.RESPAWN_LOCATIONSdefault Optional<RespawnLocation> getForWorld(World world)
Optional.empty()
is returned.world - The world to checkRespawnLocation