Class HangingBreakListener
java.lang.Object
dev.cwhead.GravesX.listener.integration.nexo.HangingBreakListener
- All Implemented Interfaces:
org.bukkit.event.Listener
Listens for HangingBreakEvent and cancels the event if the entity being broken is an ItemFrame associated with a grave.
-
Constructor Summary
ConstructorsConstructorDescriptionHangingBreakListener
(Nexo nexo) Constructs a new HangingBreakListener with the specified Nexo instance. -
Method Summary
Modifier and TypeMethodDescriptionvoid
onHangingBreak
(org.bukkit.event.hanging.HangingBreakEvent event) Handles HangingBreakEvent.
-
Constructor Details
-
HangingBreakListener
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.
-