diff --git a/src/main/java/org/bukkit/craftbukkit/entity/CraftCreeper.java b/src/main/java/org/bukkit/craftbukkit/entity/CraftCreeper.java index a41d0c3c97..8f421a905c 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); + } + } + }