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.RepositionNested 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, setCancelledMethods inherited from interface org.spongepowered.api.event.entity.ChangeEntityWorldEvent
destinationWorld, originalDestinationWorld, originalWorldMethods inherited from interface org.spongepowered.api.event.entity.MoveEntityEvent
destinationPosition, entity, originalDestinationPosition, originalPosition, setDestinationPositionMethods inherited from interface org.spongepowered.api.event.entity.living.player.RespawnPlayerEvent
entity 
- 
Method Details
- 
recreatedPlayer
ServerPlayer recreatedPlayer()Gets theplayerthat 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'sdeath.- Returns:
 trueif player died,falseotherwise
 
 -