From d1f1610d41e427fb2a211905ae1c4a8d171ce105 Mon Sep 17 00:00:00 2001 From: libraryaddict Date: Sun, 1 Dec 2013 21:55:56 +1300 Subject: [PATCH] Add ignited for creeper, seems to be the only change. Idk what this does exactly for a disguise yet --- .../disguise/disguisetypes/watchers/CreeperWatcher.java | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/me/libraryaddict/disguise/disguisetypes/watchers/CreeperWatcher.java b/src/me/libraryaddict/disguise/disguisetypes/watchers/CreeperWatcher.java index 2ebc199b..feb112e0 100644 --- a/src/me/libraryaddict/disguise/disguisetypes/watchers/CreeperWatcher.java +++ b/src/me/libraryaddict/disguise/disguisetypes/watchers/CreeperWatcher.java @@ -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);