diff options
Diffstat (limited to 'src/main/java/org/bukkit/event/block/BlockBreakEvent.java')
-rw-r--r-- | src/main/java/org/bukkit/event/block/BlockBreakEvent.java | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/main/java/org/bukkit/event/block/BlockBreakEvent.java b/src/main/java/org/bukkit/event/block/BlockBreakEvent.java index 972b8b63..780ed48f 100644 --- a/src/main/java/org/bukkit/event/block/BlockBreakEvent.java +++ b/src/main/java/org/bukkit/event/block/BlockBreakEvent.java @@ -3,6 +3,7 @@ package org.bukkit.event.block; import org.bukkit.block.Block; import org.bukkit.entity.Player; import org.bukkit.event.Cancellable; +import org.bukkit.event.HandlerList; /** * Called when a block is broken by a player. @@ -16,6 +17,7 @@ import org.bukkit.event.Cancellable; @SuppressWarnings("serial") public class BlockBreakEvent extends BlockEvent implements Cancellable { + private static final HandlerList handlers = new HandlerList(); private Player player; private boolean cancel; @@ -41,4 +43,13 @@ public class BlockBreakEvent extends BlockEvent implements Cancellable { public void setCancelled(boolean cancel) { this.cancel = cancel; } + + @Override + public HandlerList getHandlers() { + return handlers; + } + + public static HandlerList getHandlerList() { + return handlers; + } } |