Class HangingEvent

java.lang.Object
org.bukkit.event.Event
org.bukkit.event.hanging.HangingEvent
Direct Known Subclasses:
HangingBreakEvent, HangingPlaceEvent

public abstract class HangingEvent extends Event
Represents a hanging entity-related event.
  • Field Details

    • hanging

      protected Hanging hanging
  • Constructor Details

    • HangingEvent

      protected HangingEvent(@NotNull Hanging painting)
  • Method Details

    • getEntity

      @NotNull public Hanging getEntity()
      Gets the hanging entity involved in this event.
      Returns:
      the hanging entity