Class EntityDeathListener

java.lang.Object
com.ranull.graves.listener.EntityDeathListener
All Implemented Interfaces:
org.bukkit.event.Listener

public class EntityDeathListener extends Object implements org.bukkit.event.Listener
Listener for handling entity death events and creating graves.
  • Constructor Details

    • EntityDeathListener

      public EntityDeathListener(Graves plugin)
      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.