net.badbird5907.lightning.annotation.EventHandler Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of Lightning Show documentation
Show all versions of Lightning Show documentation
A lightning fast and lightweight event bus
The newest version!
package net.badbird5907.lightning.annotation;
import net.badbird5907.lightning.event.EventPriority;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
@Target(ElementType.METHOD)
@Retention(RetentionPolicy.RUNTIME)
public @interface EventHandler {
int priority() default EventPriority.NORMAL;
/**
* if true, don't call the event handler if the event is cancelled
* @return
*/
boolean ignoreCancelled() default false;
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy