diff options
Diffstat (limited to 'src/main/java/org/bukkit/event/block/BlockSpreadEvent.java')
-rw-r--r-- | src/main/java/org/bukkit/event/block/BlockSpreadEvent.java | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/main/java/org/bukkit/event/block/BlockSpreadEvent.java b/src/main/java/org/bukkit/event/block/BlockSpreadEvent.java index 6001d0ad..e90a2b81 100644 --- a/src/main/java/org/bukkit/event/block/BlockSpreadEvent.java +++ b/src/main/java/org/bukkit/event/block/BlockSpreadEvent.java @@ -2,6 +2,7 @@ package org.bukkit.event.block; import org.bukkit.block.Block; import org.bukkit.block.BlockState; +import org.bukkit.event.HandlerList; /** * Called when a block spreads based on world conditions. @@ -19,6 +20,7 @@ import org.bukkit.block.BlockState; */ @SuppressWarnings("serial") public class BlockSpreadEvent extends BlockFormEvent { + private static final HandlerList handlers = new HandlerList(); private Block source; public BlockSpreadEvent(Block block, Block source, BlockState newState) { @@ -34,4 +36,13 @@ public class BlockSpreadEvent extends BlockFormEvent { public Block getSource() { return source; } + + @Override + public HandlerList getHandlers() { + return handlers; + } + + public static HandlerList getHandlerList() { + return handlers; + } } |