Bukkit  1.4.7-R1.0
 All Classes Namespaces Files Functions Variables Enumerator Pages
Event.java
Go to the documentation of this file.
1 package org.bukkit.event;
2 
6 public abstract class Event {
7  private String name;
8  private final boolean async;
9 
14  public Event() {
15  this(false);
16  }
17 
22  public Event(boolean isAsync) {
23  this.async = isAsync;
24  }
25 
29  public String getEventName() {
30  if (name == null) {
31  name = getClass().getSimpleName();
32  }
33  return name;
34  }
35 
36  public abstract HandlerList getHandlers();
37 
52  public final boolean isAsynchronous() {
53  return async;
54  }
55 
56  public enum Result {
57 
75  }
76 }