diff options
Diffstat (limited to 'src/main/java/org/bukkit/event/block/BlockFormEvent.java')
-rw-r--r-- | src/main/java/org/bukkit/event/block/BlockFormEvent.java | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/main/java/org/bukkit/event/block/BlockFormEvent.java b/src/main/java/org/bukkit/event/block/BlockFormEvent.java index 209a5659..c3b824f8 100644 --- a/src/main/java/org/bukkit/event/block/BlockFormEvent.java +++ b/src/main/java/org/bukkit/event/block/BlockFormEvent.java @@ -3,6 +3,7 @@ package org.bukkit.event.block; import org.bukkit.block.Block; import org.bukkit.block.BlockState; import org.bukkit.event.Cancellable; +import org.bukkit.event.HandlerList; /** * Called when a block is formed or spreads based on world conditions. @@ -20,6 +21,7 @@ import org.bukkit.event.Cancellable; */ @SuppressWarnings("serial") public class BlockFormEvent extends BlockEvent implements Cancellable { + private static final HandlerList handlers = new HandlerList(); private boolean cancelled; private BlockState newState; @@ -53,4 +55,13 @@ public class BlockFormEvent extends BlockEvent implements Cancellable { public void setCancelled(boolean cancel) { this.cancelled = cancel; } + + @Override + public HandlerList getHandlers() { + return handlers; + } + + public static HandlerList getHandlerList() { + return handlers; + } } |