Class PlayerRespawnEvent


public class PlayerRespawnEvent extends PlayerEvent
Called when a player respawns.
  • Constructor Details

  • Method Details

    • getRespawnLocation

      @NotNull public Location getRespawnLocation()
      Gets the current respawn location
      Returns:
      Location current respawn location
    • setRespawnLocation

      public void setRespawnLocation(@NotNull Location respawnLocation)
      Sets the new respawn location
      Parameters:
      respawnLocation - new location for the respawn
    • isBedSpawn

      public boolean isBedSpawn()
      Gets whether the respawn location is the player's bed.
      Returns:
      true if the respawn location is the player's bed.
    • isAnchorSpawn

      public boolean isAnchorSpawn()
      Gets whether the respawn location is the player's respawn anchor.
      Returns:
      true if the respawn location is the player's respawn anchor.
    • getHandlers

      @NotNull public HandlerList getHandlers()
      Specified by:
      getHandlers in class Event
    • getHandlerList

      @NotNull public static HandlerList getHandlerList()