public interface RespawnLocationData extends DataManipulator<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 |
---|---|
Optional<com.flowpowered.math.vector.Vector3d> |
getForWorld(World world)
Gets the
Vector3d location for the spawn world if available. |
MapValue<UUID,com.flowpowered.math.vector.Vector3d> |
respawnLocation()
Gets the
MapValue for the "respawn" locations set for
various Identifiable.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. |
asImmutable, copy, fill, fill, from, set, set, set, set, transform
compareTo
toContainer
MapValue<UUID,com.flowpowered.math.vector.Vector3d> respawnLocation()
MapValue
for the "respawn" locations set for
various Identifiable.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.Optional<com.flowpowered.math.vector.Vector3d> getForWorld(World world)
Vector3d
location for the spawn world if available.
If the respawn point for that world has not been set,
Optional.empty()
is returned.world
- The world to check