Add ignited for creeper, seems to be the only change. Idk what this does exactly for a disguise yet

This commit is contained in:
libraryaddict 2013-12-01 21:55:56 +13:00
parent 857669fa86
commit d1f1610d41

View File

@ -12,6 +12,10 @@ public class CreeperWatcher extends LivingWatcher {
return (Byte) getValue(16, (byte) 0) == 1;
}
public boolean isIgnited() {
return (Byte) getValue(18, (byte) 0) == 1;
}
public boolean isPowered() {
return (Byte) getValue(17, (byte) 0) == 1;
}
@ -27,6 +31,11 @@ public class CreeperWatcher extends LivingWatcher {
sendData(16);
}
public void setIgnited(boolean ignited) {
setValue(18, (byte) (ignited ? 1 : 0));
sendData(18);
}
public void setPowered(boolean powered) {
setValue(17, (byte) (powered ? 1 : 0));
sendData(17);