Interface RespawnPlayerEvent.Recreate
- All Superinterfaces:
Cancellable
,ChangeEntityWorldEvent
,ChangeEntityWorldEvent.Reposition
,Event
,MoveEntityEvent
,RespawnPlayerEvent
- Enclosing interface:
RespawnPlayerEvent
public static interface RespawnPlayerEvent.Recreate
extends RespawnPlayerEvent, ChangeEntityWorldEvent.Reposition
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.spongepowered.api.event.entity.ChangeEntityWorldEvent
ChangeEntityWorldEvent.Post, ChangeEntityWorldEvent.Pre, ChangeEntityWorldEvent.Reposition
Nested classes/interfaces inherited from interface org.spongepowered.api.event.entity.living.player.RespawnPlayerEvent
RespawnPlayerEvent.Post, RespawnPlayerEvent.Recreate, RespawnPlayerEvent.SelectWorld
-
Method Summary
Methods inherited from interface org.spongepowered.api.event.Cancellable
isCancelled, setCancelled
Methods inherited from interface org.spongepowered.api.event.entity.ChangeEntityWorldEvent
destinationWorld, originalDestinationWorld, originalWorld
Methods inherited from interface org.spongepowered.api.event.entity.MoveEntityEvent
destinationPosition, entity, originalDestinationPosition, originalPosition, setDestinationPosition
Methods inherited from interface org.spongepowered.api.event.entity.living.player.RespawnPlayerEvent
entity
-
Method Details
-
recreatedPlayer
ServerPlayer recreatedPlayer()Gets theplayer
that was recreated.Care must be taken in interacting with this player as at this point in time the player is not within the
world
.- Returns:
- The player
-
isBedSpawn
boolean isBedSpawn()Gets whether the position of spawn was set by aBed
.- Returns:
- True if the position of spawn was due to a bed, false otherwise
-
isDeath
boolean isDeath()Gets if this respawn is due to aplayer's
death.- Returns:
true
if player died,false
otherwise
-