Package net.lewmc.essence.events
Class PlayerDamageEvent
java.lang.Object
net.lewmc.essence.events.PlayerDamageEvent
- All Implemented Interfaces:
org.bukkit.event.Listener
PlayerDamageEvent class.
-
Constructor Summary
ConstructorDescriptionPlayerDamageEvent
(Essence plugin) Constructor for the PlayerDamageEvent class. -
Method Summary
Modifier and TypeMethodDescriptionvoid
onPlayerDamage
(org.bukkit.event.entity.EntityDamageByEntityEvent event) Event handler for when an entity is damaged by another entity.
-
Constructor Details
-
PlayerDamageEvent
Constructor for the PlayerDamageEvent class.- Parameters:
plugin
- Essence - Reference to the main Essence class.
-
-
Method Details
-
onPlayerDamage
public void onPlayerDamage(org.bukkit.event.entity.EntityDamageByEntityEvent event) Event handler for when an entity is damaged by another entity.- Parameters:
event
- EntityDamageByEntityEvent - Server thrown event.
-