Class HangingBreakListener

java.lang.Object
dev.cwhead.GravesX.listener.integration.nexo.HangingBreakListener
All Implemented Interfaces:
org.bukkit.event.Listener

public class HangingBreakListener extends Object implements org.bukkit.event.Listener
Listens for HangingBreakEvent and cancels the event if the entity being broken is an ItemFrame associated with a grave.
  • Constructor Details

    • HangingBreakListener

      public HangingBreakListener(Nexo nexo)
      Constructs a new HangingBreakListener with the specified Nexo instance.
      Parameters:
      nexo - The Nexo instance to use.
  • Method Details

    • onHangingBreak

      public void onHangingBreak(org.bukkit.event.hanging.HangingBreakEvent event)
      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.