@Retention(value=RUNTIME)
@Target(value=METHOD)
public @interface SubscribeEvent
Event
This annotation can only be applied to single parameter methods, where the single parameter is a subclass of
Event
.
Use IEventBus.register(Object)
to submit either an Object instance or a Class
to the event bus
for scanning to generate callback IEventListener
wrappers.
The Event Bus system generates an ASM wrapper that dispatches to the marked method.修飾子とタイプ | 任意要素と説明 |
---|---|
EventPriority |
priority |
boolean |
receiveCanceled |
public abstract EventPriority priority