Interface RespawnPlayerEvent.Recreate

All Superinterfaces:
Cancellable, ChangeEntityWorldEvent, ChangeEntityWorldEvent.Reposition, Event, MoveEntityEvent, RespawnPlayerEvent
Enclosing interface:
RespawnPlayerEvent

public static interface RespawnPlayerEvent.Recreate extends RespawnPlayerEvent, ChangeEntityWorldEvent.Reposition
  • Method Details

    • recreatedPlayer

      ServerPlayer recreatedPlayer()
      Gets the player 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 a Bed.
      Returns:
      True if the position of spawn was due to a bed, false otherwise
    • isDeath

      boolean isDeath()
      Gets if this respawn is due to a player's death.
      Returns:
      true if player died, false otherwise