Package com.ranull.graves.listener
Class EntityDamageByEntityListener
java.lang.Object
com.ranull.graves.listener.EntityDamageByEntityListener
- All Implemented Interfaces:
org.bukkit.event.Listener
Listens for EntityDamageByEntityEvent to manage damage to specific entities.
-
Constructor Summary
ConstructorsConstructorDescriptionEntityDamageByEntityListener
(Graves plugin) Constructs a new EntityDamageByEntityListener with the specified Graves plugin. -
Method Summary
Modifier and TypeMethodDescriptionvoid
onEntityDamageByEntity
(org.bukkit.event.entity.EntityDamageByEntityEvent event) Handles EntityDamageByEntityEvent to determine if damage should be cancelled based on the entity type and associated data.
-
Constructor Details
-
EntityDamageByEntityListener
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.
-