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 World s. |
asMap, get, getMapKeys, getMapValue, getMapValues, put, putAll, remove
asImmutable, copy, fill, fill, from, set, set, set, set, transform
getContentVersion, toContainer
default 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 World
s.Keys.RESPAWN_LOCATIONS
default Optional<RespawnLocation> getForWorld(World world)
Optional.empty()
is returned.world
- The world to checkRespawnLocation