summaryrefslogtreecommitdiffstats
path: root/src/main
diff options
context:
space:
mode:
authorDinnerbone <dinnerbone@dinnerbone.com>2011-04-21 16:15:44 +0100
committerDinnerbone <dinnerbone@dinnerbone.com>2011-04-21 16:15:44 +0100
commit1a68a2aafe530f543245e2aa76ff2efd81361515 (patch)
tree57f792d4918786d066c7a309bb420fa52fae553d /src/main
parent7c455380a95407a33a8c1ec383c5b313d2645732 (diff)
downloadcraftbukkit-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.java12
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);
+ }
+ }
+
}