Package com.ranull.graves.listener
Class EntityDeathListener
java.lang.Object
com.ranull.graves.listener.EntityDeathListener
- All Implemented Interfaces:
org.bukkit.event.Listener
Listener for handling entity death events and creating graves.
-
Constructor Summary
ConstructorsConstructorDescriptionEntityDeathListener
(Graves plugin) Constructs an EntityDeathListener with the specified Graves plugin. -
Method Summary
Modifier and TypeMethodDescriptionvoid
onEntityDeath
(org.bukkit.event.entity.EntityDeathEvent event) Handles the EntityDeathEvent to create a grave based on various conditions.
-
Constructor Details
-
EntityDeathListener
Constructs an EntityDeathListener with the specified Graves plugin.- Parameters:
plugin
- The Graves plugin instance.
-
-
Method Details
-
onEntityDeath
public void onEntityDeath(org.bukkit.event.entity.EntityDeathEvent event) Handles the EntityDeathEvent to create a grave based on various conditions.- Parameters:
event
- The EntityDeathEvent to handle.
-