Class BeaconDeactivatedEvent

java.lang.Object
org.bukkit.event.Event
org.bukkit.event.block.BlockEvent
io.papermc.paper.event.block.BeaconDeactivatedEvent

@NullMarked public class BeaconDeactivatedEvent extends BlockEvent
Called when a beacon is deactivated, either because its base block(s) or itself were destroyed.
  • Constructor Details

    • BeaconDeactivatedEvent

      @Internal public BeaconDeactivatedEvent(Block block)
  • Method Details

    • getBeacon

      public @Nullable Beacon getBeacon()
      Returns the beacon that was deactivated. This will return null if the beacon does not exist. (which can occur after the deactivation of a now broken beacon)
      Returns:
      The beacon that got deactivated, or null if it does not exist.
    • getHandlers

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

      public static HandlerList getHandlerList()