Class EntityDamageListener
java.lang.Object
com.ranull.graves.listener.integration.oraxen.EntityDamageListener
- All Implemented Interfaces:
org.bukkit.event.Listener
Deprecated.
Recommend Nexo as a replacement.
Listens for EntityDamageEvent and cancels damage if the entity is an ItemFrame associated with a grave.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionEntityDamageListener
(Oraxen oraxen) Deprecated.Recommend Nexo as a replacement. -
Method Summary
Modifier and TypeMethodDescriptionprivate boolean
isItemFrameAndHasGrave
(org.bukkit.event.entity.EntityDamageEvent event) Deprecated.Recommend Nexo as a replacement.void
onEntityDamage
(org.bukkit.event.entity.EntityDamageEvent event) Deprecated.Recommend Nexo as a replacement.
-
Field Details
-
oraxen
Deprecated.
-
-
Constructor Details
-
EntityDamageListener
Deprecated.Recommend Nexo as a replacement. Constructs a new EntityDamageListener with the specified Oraxen instance.- Parameters:
oraxen
- The Oraxen instance to use.
-
-
Method Details
-
onEntityDamage
Deprecated.Recommend Nexo as a replacement. Handles EntityDamageEvent. If the entity being damaged is an ItemFrame and is associated with a grave, it cancels the damage event.- Parameters:
event
- The EntityDamageEvent to handle.
-
isItemFrameAndHasGrave
Deprecated.Recommend Nexo as a replacement. Checks if the entity is an ItemFrame and has an associated grave.- Parameters:
event
- The EntityDamageEvent.- Returns:
- True if the entity is an ItemFrame and has an associated grave, false otherwise.
-