diff options
Diffstat (limited to 'src/main/java/org/bukkit/event/weather/LightningStrikeEvent.java')
-rw-r--r-- | src/main/java/org/bukkit/event/weather/LightningStrikeEvent.java | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/main/java/org/bukkit/event/weather/LightningStrikeEvent.java b/src/main/java/org/bukkit/event/weather/LightningStrikeEvent.java index 2bcd37a0..b778c595 100644 --- a/src/main/java/org/bukkit/event/weather/LightningStrikeEvent.java +++ b/src/main/java/org/bukkit/event/weather/LightningStrikeEvent.java @@ -3,12 +3,14 @@ package org.bukkit.event.weather; import org.bukkit.World; import org.bukkit.entity.LightningStrike; import org.bukkit.event.Cancellable; +import org.bukkit.event.HandlerList; /** * Stores data for lightning striking */ @SuppressWarnings("serial") public class LightningStrikeEvent extends WeatherEvent implements Cancellable { + private static final HandlerList handlers = new HandlerList(); private boolean canceled; private LightningStrike bolt; @@ -34,4 +36,13 @@ public class LightningStrikeEvent extends WeatherEvent implements Cancellable { public LightningStrike getLightning() { return bolt; } + + @Override + public HandlerList getHandlers() { + return handlers; + } + + public static HandlerList getHandlerList() { + return handlers; + } } |