13
0
geforkt von Mirrors/Paper

Implemented Creeper.is/setPowered

Dieser Commit ist enthalten in:
Dinnerbone 2011-04-21 16:15:44 +01:00
Ursprung 7c455380a9
Commit 1a68a2aafe

Datei anzeigen

@ -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);
}
}
}