public interface ImmutableRespawnLocation extends ImmutableMappedData<UUID,RespawnLocation,ImmutableRespawnLocation,RespawnLocationData>
ImmutableDataManipulator for the "respawn" location of a
Player. A Player may have multiple respawn locations, but can
only have a single respawn location per World. A location can be
"forced", which means they will spawn there even if it's not a valid bed.| Modifier and Type | Method and Description |
|---|---|
default Optional<RespawnLocation> |
getForWorld(World world)
Gets the respawn location for the given world, if available.
|
default ImmutableMapValue<UUID,RespawnLocation> |
respawnLocation()
Gets the
ImmutableMapValue 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, getMapValuesasMutable, copy, with, withgetContentVersion, toContainerdefault ImmutableMapValue<UUID,RespawnLocation> respawnLocation()
ImmutableMapValue 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.default Optional<RespawnLocation> getForWorld(World world)
Optional.empty()
is returned.world - The world to checkRespawnLocation