Update to using a newer method.
This commit is contained in:
parent
fc125dfd32
commit
ee629e2bc8
10 changed files with 277 additions and 9 deletions
|
@ -0,0 +1,18 @@
|
|||
package dev.zontreck.eventsbus.annotations;
|
||||
|
||||
import dev.zontreck.eventsbus.Event;
|
||||
|
||||
import java.lang.annotation.ElementType;
|
||||
import java.lang.annotation.Retention;
|
||||
import java.lang.annotation.RetentionPolicy;
|
||||
import java.lang.annotation.Target;
|
||||
|
||||
@Retention(value = RetentionPolicy.RUNTIME)
|
||||
@Target(value = ElementType.METHOD)
|
||||
|
||||
public @interface Subscribe {
|
||||
/**
|
||||
* Marks that the subscribed method will not receive the signal if the event was cancelled with {@link Event#setCancelled(boolean)}
|
||||
*/
|
||||
boolean allowCancelled();
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue