org.bukkit.event
Annotation Type EventHandler


@Target(value=METHOD)
@Retention(value=RUNTIME)
public @interface EventHandler

An annotation to mark methods as being event handler methods


Optional Element Summary
 boolean ignoreCancelled
          Define if the handler ignores a cancelled event.
 EventPriority priority
          Define the priority of the event.
 

priority

public abstract EventPriority priority
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

Default:
org.bukkit.event.EventPriority.NORMAL

ignoreCancelled

public abstract boolean ignoreCancelled
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.

Default:
false


Copyright © 2013. All Rights Reserved.