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.-
Constructor Summary
ConstructorsConstructorDescriptionCustomBlockBreakListener(Graves plugin) Constructs a newCustomBlockBreakListener. -
Method Summary
Modifier and TypeMethodDescriptionvoidonBlockBreakIA(dev.lone.itemsadder.api.Events.CustomBlockBreakEvent event) Handles theCustomBlockBreakEventfor ItemsAdder custom blocks.
-
Constructor Details
-
CustomBlockBreakListener
Constructs a newCustomBlockBreakListener.- Parameters:
plugin- the instance of theGravesplugin
-
-
Method Details
-
onBlockBreakIA
public void onBlockBreakIA(dev.lone.itemsadder.api.Events.CustomBlockBreakEvent event) Handles theCustomBlockBreakEventfor 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 ItemsAdderCustomBlockBreakEventtriggered when a custom block is broken
-