Commits
md_5 authored e3fabbe22ea
1 1 | package org.bukkit.event; |
2 2 | |
3 3 | import org.bukkit.plugin.PluginManager; |
4 4 | |
5 5 | /** |
6 6 | * Represents an event. |
7 7 | * |
8 + | * All events require a static method named getHandlerList() which returns the same {@link HandlerList} has {@link #getHandlers()}. |
9 + | * |
8 10 | * @see PluginManager#callEvent(Event) |
9 11 | * @see PluginManager#registerEvents(Listener,Plugin) |
10 12 | */ |
11 13 | public abstract class Event { |
12 14 | private String name; |
13 15 | private final boolean async; |
14 16 | |
15 17 | /** |
16 18 | * The default constructor is defined for cleaner code. This constructor |
17 19 | * assumes the event is synchronous. |