Class BedExplodeEvent

java.lang.Object
org.bukkit.event.Event
com.palmergames.bukkit.towny.event.BedExplodeEvent

public class BedExplodeEvent extends org.bukkit.event.Event
Called when a Player tries to set their spawn point at a bed or respawn anchor in a dimension that doesn't support them.
  • Nested Class Summary

    Nested classes/interfaces inherited from class org.bukkit.event.Event

    org.bukkit.event.Event.Result
  • Constructor Summary

    Constructors
    Constructor
    Description
    BedExplodeEvent(org.bukkit.entity.Player player, org.bukkit.Location loc1, org.bukkit.Location loc2, org.bukkit.Material mat)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static org.bukkit.event.HandlerList
     
    @NotNull org.bukkit.event.HandlerList
     
    @NotNull org.bukkit.Location
     
    @Nullable org.bukkit.Location
     
    @NotNull org.bukkit.Material
     
    @NotNull org.bukkit.entity.Player
     

    Methods inherited from class org.bukkit.event.Event

    getEventName, isAsynchronous

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • BedExplodeEvent

      public BedExplodeEvent(org.bukkit.entity.Player player, org.bukkit.Location loc1, org.bukkit.Location loc2, org.bukkit.Material mat)
  • Method Details

    • getLocation

      @NotNull public @NotNull org.bukkit.Location getLocation()
      Returns:
      The location of the part of the bed or respawn anchor that the player clicked.
    • getLocation2

      @Nullable public @Nullable org.bukkit.Location getLocation2()
      Returns:
      The bed's second block, or null if this was a respawn anchor explosion.
    • getMaterial

      @NotNull public @NotNull org.bukkit.Material getMaterial()
      Returns:
      The material of the block that blew up.
    • getPlayer

      @NotNull public @NotNull org.bukkit.entity.Player getPlayer()
    • getHandlers

      @NotNull public @NotNull org.bukkit.event.HandlerList getHandlers()
      Specified by:
      getHandlers in class org.bukkit.event.Event
    • getHandlerList

      public static org.bukkit.event.HandlerList getHandlerList()