Interface EntityEvents
public interface EntityEvents
Entity-related event provider.
-
Method Summary
Modifier and TypeMethodDescription@NotNull EventSubscription<org.bukkit.event.entity.EntityDamageEvent> Shorthand to listen to entity damage events.@NotNull EventSubscription<org.bukkit.event.entity.EntityDeathEvent> Shorthand to listen to entity death events.
-
Method Details
-
damage
@NotNull @NotNull EventSubscription<org.bukkit.event.entity.EntityDamageEvent> damage(@NotNull @NotNull Consumer<org.bukkit.event.entity.EntityDamageEvent> handler) Shorthand to listen to entity damage events.- Parameters:
handler- the event handler- Returns:
- the active event subscription
-
death
@NotNull @NotNull EventSubscription<org.bukkit.event.entity.EntityDeathEvent> death(@NotNull @NotNull Consumer<org.bukkit.event.entity.EntityDeathEvent> handler) Shorthand to listen to entity death events.- Parameters:
handler- the event handler- Returns:
- the active event subscription
-