diff options
author | Dinnerbone <dinnerbone@dinnerbone.com> | 2011-04-21 16:15:44 +0100 |
---|---|---|
committer | Dinnerbone <dinnerbone@dinnerbone.com> | 2011-04-21 16:15:44 +0100 |
commit | 1a68a2aafe530f543245e2aa76ff2efd81361515 (patch) | |
tree | 57f792d4918786d066c7a309bb420fa52fae553d /src/main | |
parent | 7c455380a95407a33a8c1ec383c5b313d2645732 (diff) | |
download | craftbukkit-1a68a2aafe530f543245e2aa76ff2efd81361515.tar craftbukkit-1a68a2aafe530f543245e2aa76ff2efd81361515.tar.gz craftbukkit-1a68a2aafe530f543245e2aa76ff2efd81361515.tar.lz craftbukkit-1a68a2aafe530f543245e2aa76ff2efd81361515.tar.xz craftbukkit-1a68a2aafe530f543245e2aa76ff2efd81361515.zip |
Implemented Creeper.is/setPowered
Diffstat (limited to 'src/main')
-rw-r--r-- | src/main/java/org/bukkit/craftbukkit/entity/CraftCreeper.java | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/main/java/org/bukkit/craftbukkit/entity/CraftCreeper.java b/src/main/java/org/bukkit/craftbukkit/entity/CraftCreeper.java index a41d0c3c..8f421a90 100644 --- a/src/main/java/org/bukkit/craftbukkit/entity/CraftCreeper.java +++ b/src/main/java/org/bukkit/craftbukkit/entity/CraftCreeper.java @@ -15,4 +15,16 @@ public class CraftCreeper extends CraftMonster implements Creeper { return "CraftCreeper"; } + public boolean isPowered() { + return getHandle().W().a(17) == 1; + } + + public void setPowered(boolean powered) { + if (powered) { + getHandle().W().a(17, 1); + } else { + getHandle().W().a(17, 0); + } + } + } |