diff options
Diffstat (limited to 'src/main/java/org/bukkit/event/player/PlayerFishEvent.java')
-rw-r--r-- | src/main/java/org/bukkit/event/player/PlayerFishEvent.java | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/main/java/org/bukkit/event/player/PlayerFishEvent.java b/src/main/java/org/bukkit/event/player/PlayerFishEvent.java index 285e8ab8..5b5cdab6 100644 --- a/src/main/java/org/bukkit/event/player/PlayerFishEvent.java +++ b/src/main/java/org/bukkit/event/player/PlayerFishEvent.java @@ -3,12 +3,14 @@ package org.bukkit.event.player; import org.bukkit.entity.Player; import org.bukkit.event.Cancellable; import org.bukkit.entity.Entity; +import org.bukkit.event.HandlerList; /** * Thrown when a player is fishing */ @SuppressWarnings("serial") public class PlayerFishEvent extends PlayerEvent implements Cancellable { + private static final HandlerList handlers = new HandlerList(); private final Entity entity; private boolean cancel = false; private State state; @@ -45,6 +47,15 @@ public class PlayerFishEvent extends PlayerEvent implements Cancellable { return state; } + @Override + public HandlerList getHandlers() { + return handlers; + } + + public static HandlerList getHandlerList() { + return handlers; + } + /** * An enum to specify the state of the fishing */ |