Class CustomBlockBreakListener
java.lang.Object
com.ranull.graves.listener.integration.itemsadder.CustomBlockBreakListener
- All Implemented Interfaces:
org.bukkit.event.Listener
A listener for handling ItemsAdder's
CustomBlockBreakEvent
.
This class is responsible for cancelling the block break event for graves,
depending on the configuration settings in the Graves plugin.-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCustomBlockBreakListener
(Graves plugin) Constructs a newCustomBlockBreakListener
. -
Method Summary
Modifier and TypeMethodDescriptionvoid
onBlockBreakIA
(dev.lone.itemsadder.api.Events.CustomBlockBreakEvent event) Handles theCustomBlockBreakEvent
for ItemsAdder custom blocks.
-
Field Details
-
plugin
-
-
Constructor Details
-
CustomBlockBreakListener
Constructs a newCustomBlockBreakListener
.- Parameters:
plugin
- the instance of theGraves
plugin
-
-
Method Details
-
onBlockBreakIA
public void onBlockBreakIA(dev.lone.itemsadder.api.Events.CustomBlockBreakEvent event) Handles theCustomBlockBreakEvent
for ItemsAdder custom blocks. Cancels the event if the block is part of a grave and the configuration for preventing block breaking is enabled.- Parameters:
event
- the ItemsAdderCustomBlockBreakEvent
triggered when a custom block is broken
-