From 86169422a7dffc4ed88f9c902bc027e9094f6b99 Mon Sep 17 00:00:00 2001 From: Andrew Date: Wed, 6 Nov 2013 21:02:53 +1300 Subject: [PATCH] SetType(int) added to ocelot --- .../disguise/disguisetypes/watchers/OcelotWatcher.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/me/libraryaddict/disguise/disguisetypes/watchers/OcelotWatcher.java b/src/me/libraryaddict/disguise/disguisetypes/watchers/OcelotWatcher.java index d24be100..93a6ec24 100644 --- a/src/me/libraryaddict/disguise/disguisetypes/watchers/OcelotWatcher.java +++ b/src/me/libraryaddict/disguise/disguisetypes/watchers/OcelotWatcher.java @@ -1,12 +1,10 @@ package me.libraryaddict.disguise.disguisetypes.watchers; - import me.libraryaddict.disguise.disguisetypes.Disguise; import org.bukkit.entity.Ocelot; import org.bukkit.entity.Ocelot.Type; - public class OcelotWatcher extends AgeableWatcher { public OcelotWatcher(Disguise disguise) { @@ -40,4 +38,9 @@ public class OcelotWatcher extends AgeableWatcher { setValue(18, (byte) newType.getId()); sendData(18); } + + public void setType(int type) { + setValue(18, (byte) type); + sendData(18); + } }