diff options
author | EvilSeph <evilseph@gmail.com> | 2011-07-28 10:53:19 -0400 |
---|---|---|
committer | EvilSeph <evilseph@gmail.com> | 2011-07-28 10:53:19 -0400 |
commit | 30f4a7d66dc8477b133a437f72c6c65e2384228f (patch) | |
tree | c51f44ad29d5c9c1d6e81708fdad176c9ea51251 | |
parent | 4368ec2736977abda518ecb7c3de92d74b6c686a (diff) | |
download | bukkit-30f4a7d66dc8477b133a437f72c6c65e2384228f.tar bukkit-30f4a7d66dc8477b133a437f72c6c65e2384228f.tar.gz bukkit-30f4a7d66dc8477b133a437f72c6c65e2384228f.tar.lz bukkit-30f4a7d66dc8477b133a437f72c6c65e2384228f.tar.xz bukkit-30f4a7d66dc8477b133a437f72c6c65e2384228f.zip |
Made PlayerAnimation cancellable. Thanks desmin88!
-rw-r--r-- | src/main/java/org/bukkit/event/player/PlayerAnimationEvent.java | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/src/main/java/org/bukkit/event/player/PlayerAnimationEvent.java b/src/main/java/org/bukkit/event/player/PlayerAnimationEvent.java index 82a71b34..93a3f757 100644 --- a/src/main/java/org/bukkit/event/player/PlayerAnimationEvent.java +++ b/src/main/java/org/bukkit/event/player/PlayerAnimationEvent.java @@ -1,13 +1,15 @@ package org.bukkit.event.player; import org.bukkit.entity.Player; +import org.bukkit.event.Cancellable; /** * Represents a player animation event */ -public class PlayerAnimationEvent extends PlayerEvent { +public class PlayerAnimationEvent extends PlayerEvent implements Cancellable { private PlayerAnimationType animationType; + private boolean isCancelled = false; /** * Construct a new PlayerAnimation event @@ -29,4 +31,12 @@ public class PlayerAnimationEvent extends PlayerEvent { public PlayerAnimationType getAnimationType() { return animationType; } + + public boolean isCancelled() { + return this.isCancelled; + } + + public void setCancelled(boolean cancel) { + this.isCancelled = cancel; + } } |