Package me.hackware.api.event
Annotation Interface SubscribeEvent
Marks a method as an event handler. The method must have exactly one
parameter whose type extends
Event.
@SubscribeEvent
private void onAttack(AttackEvent event) { ... }
@SubscribeEvent(priority = EventPriority.HIGH)
private void onPacket(PacketEvent event) { ... }
-
Optional Element Summary
Optional Elements
-
Element Details
-
priority
EventPriority priority- Default:
NORMAL
-