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