Class HangingBreakListener

java.lang.Object
com.ranull.graves.listener.integration.oraxen.HangingBreakListener
All Implemented Interfaces:
org.bukkit.event.Listener

@Deprecated public class HangingBreakListener extends Object implements org.bukkit.event.Listener
Deprecated.
Recommend Nexo as a replacement. Listens for HangingBreakEvent and cancels the event if the entity being broken is an ItemFrame associated with a grave.
  • Field Details

    • oraxen

      private final Oraxen oraxen
      Deprecated.
  • Constructor Details

    • HangingBreakListener

      @Deprecated public HangingBreakListener(Oraxen oraxen)
      Deprecated.
      Recommend Nexo as a replacement. Constructs a new HangingBreakListener with the specified Oraxen instance.
      Parameters:
      oraxen - The Oraxen instance to use.
  • Method Details

    • onHangingBreak

      @Deprecated public void onHangingBreak(org.bukkit.event.hanging.HangingBreakEvent event)
      Deprecated.
      Recommend Nexo as a replacement. Handles HangingBreakEvent. If the entity being broken is an ItemFrame and is associated with a grave, it cancels the event.
      Parameters:
      event - The HangingBreakEvent to handle.
    • isItemFrameAndHasGrave

      @Deprecated private boolean isItemFrameAndHasGrave(org.bukkit.event.hanging.HangingBreakEvent event)
      Deprecated.
      Recommend Nexo as a replacement. Checks if the entity is an ItemFrame and has an associated grave.
      Parameters:
      event - The HangingBreakEvent.
      Returns:
      True if the entity is an ItemFrame and has an associated grave, false otherwise.