Added setShaking to zombie watcher

This commit is contained in:
libraryaddict 2014-07-14 12:42:03 +12:00
parent 714eaaf0cf
commit b859ea28f9

View File

@ -28,6 +28,15 @@ public class ZombieWatcher extends LivingWatcher {
setBaby(true); setBaby(true);
} }
public void setShaking(boolean shaking) {
setValue(14, (byte) (shaking ? 1 : 0));
sendData(14);
}
public boolean isShaking() {
return getValue(14, (byte) 0) == 1;
}
public void setBaby(boolean baby) { public void setBaby(boolean baby) {
setValue(12, (byte) (baby ? 1 : 0)); setValue(12, (byte) (baby ? 1 : 0));
sendData(12); sendData(12);