Package com.ranull.graves.listener
Class EntityChangeListener
java.lang.Object
com.ranull.graves.listener.EntityChangeListener
- All Implemented Interfaces:
org.bukkit.event.Listener
Listener for handling EntityChangeBlockEvent to prevent any entities from interacting with blocks
in specific areas, such as picking up or placing blocks near graves.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionEntityChangeListener
(Graves plugin) Constructs a new EntityChangeListener with the specified Graves plugin. -
Method Summary
Modifier and TypeMethodDescriptionvoid
onEntityChangeBlock
(org.bukkit.event.entity.EntityChangeBlockEvent event) Handles the EntityChangeBlockEvent to prevent any entity from picking up or placing blocks in a grave area.
-
Field Details
-
plugin
-
-
Constructor Details
-
EntityChangeListener
Constructs a new EntityChangeListener with the specified Graves plugin.- Parameters:
plugin
- The Graves plugin instance.
-
-
Method Details
-
onEntityChangeBlock
public void onEntityChangeBlock(org.bukkit.event.entity.EntityChangeBlockEvent event) Handles the EntityChangeBlockEvent to prevent any entity from picking up or placing blocks in a grave area.- Parameters:
event
- The EntityChangeBlockEvent to handle.
-