Class HangingBreakListener

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

public class HangingBreakListener extends Object implements org.bukkit.event.Listener
Listener for handling HangingBreakEvent and conditionally canceling the event.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Constructs a HangingBreakListener with the specified Graves plugin.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    onHangingBreak(org.bukkit.event.hanging.HangingBreakEvent event)
    Handles the HangingBreakEvent to conditionally cancel the event if the entity is an ItemFrame and associated with a grave.

    Methods inherited from class java.lang.Object

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

    • HangingBreakListener

      public HangingBreakListener(Graves plugin)
      Constructs a HangingBreakListener with the specified Graves plugin.
      Parameters:
      plugin - The Graves plugin instance.
  • Method Details

    • onHangingBreak

      public void onHangingBreak(org.bukkit.event.hanging.HangingBreakEvent event)
      Handles the HangingBreakEvent to conditionally cancel the event if the entity is an ItemFrame and associated with a grave.
      Parameters:
      event - The HangingBreakEvent to handle.