All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.bukkit.event.EventHandler Maven / Gradle / Ivy

There is a newer version: 2.4.0
Show newest version
package org.bukkit.event;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * An annotation to mark methods as being event handler methods
 */
@Target(ElementType.METHOD)
@Retention(RetentionPolicy.RUNTIME)
public @interface EventHandler {

  /**
   * Define the priority of the event.
   * 

* First priority to the last priority executed: *

    *
  1. LOWEST *
  2. LOW *
  3. NORMAL *
  4. HIGH *
  5. HIGHEST *
  6. MONITOR *
* * @return the priority */ EventPriority priority() default EventPriority.NORMAL; /** * Define if the handler ignores a cancelled event. *

* If ignoreCancelled is true and the event is cancelled, the method is * not called. Otherwise, the method is always called. * * @return whether cancelled events should be ignored */ boolean ignoreCancelled() default false; }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy