Package com.ranull.graves.listener
Class HangingBreakListener
java.lang.Object
com.ranull.graves.listener.HangingBreakListener
- All Implemented Interfaces:
org.bukkit.event.Listener
Listener for handling HangingBreakEvent and conditionally canceling the event.
-
Constructor Summary
ConstructorsConstructorDescriptionHangingBreakListener
(Graves plugin) Constructs a HangingBreakListener with the specified Graves plugin. -
Method Summary
Modifier and TypeMethodDescriptionvoid
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.
-
Constructor Details
-
HangingBreakListener
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.
-