Class EntityDamageByEntityListener

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

public class EntityDamageByEntityListener extends Object implements org.bukkit.event.Listener
Listens for EntityDamageByEntityEvent to manage damage to specific entities.
  • Constructor Details

    • EntityDamageByEntityListener

      public EntityDamageByEntityListener(Graves plugin)
      Constructs a new EntityDamageByEntityListener with the specified Graves plugin.
      Parameters:
      plugin - The Graves plugin instance.
  • Method Details

    • onEntityDamageByEntity

      public void onEntityDamageByEntity(org.bukkit.event.entity.EntityDamageByEntityEvent event)
      Handles EntityDamageByEntityEvent to determine if damage should be cancelled based on the entity type and associated data.
      Parameters:
      event - The EntityDamageByEntityEvent to handle.