From b859ea28f9b1128accb51961e0977b461f5ba380 Mon Sep 17 00:00:00 2001 From: libraryaddict Date: Mon, 14 Jul 2014 12:42:03 +1200 Subject: [PATCH] Added setShaking to zombie watcher --- .../disguise/disguisetypes/watchers/ZombieWatcher.java | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/me/libraryaddict/disguise/disguisetypes/watchers/ZombieWatcher.java b/src/me/libraryaddict/disguise/disguisetypes/watchers/ZombieWatcher.java index a001ecb9..510cfb8c 100644 --- a/src/me/libraryaddict/disguise/disguisetypes/watchers/ZombieWatcher.java +++ b/src/me/libraryaddict/disguise/disguisetypes/watchers/ZombieWatcher.java @@ -28,6 +28,15 @@ public class ZombieWatcher extends LivingWatcher { 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) { setValue(12, (byte) (baby ? 1 : 0)); sendData(12);