Package me.tamkungz.signals.bukkit.event
Class EntitySignals
java.lang.Object
me.tamkungz.signals.bukkit.event.EntitySignals
Shortcuts for common Bukkit entity events, reached with
BukkitSignals#entities().
Each method is the same as EventSignalSource.on(Class) for the named event class;
anything not listed here is still available through that method.
-
Constructor Summary
ConstructorsConstructorDescriptionEntitySignals(EventSignalSource source) Creates the shortcuts; preferBukkitSignals#entities(). -
Method Summary
Modifier and TypeMethodDescriptionEventSignalBuilder<org.bukkit.event.entity.EntityDamageEvent> damage()Listens toEntityDamageEvent.EventSignalBuilder<org.bukkit.event.entity.EntityDeathEvent> death()Listens toEntityDeathEvent.
-
Constructor Details
-
EntitySignals
Creates the shortcuts; preferBukkitSignals#entities().- Parameters:
source- where the signals come from
-
-
Method Details
-
damage
Listens toEntityDamageEvent.- Returns:
- a builder for priority and cancellation options
-
death
Listens toEntityDeathEvent.- Returns:
- a builder for priority and cancellation options
-