SetType(int) added to ocelot

This commit is contained in:
Andrew 2013-11-06 21:02:53 +13:00
parent 2843022f6c
commit 86169422a7

View File

@ -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);
}
}