mirror of
https://github.com/libraryaddict/LibsDisguises.git
synced 2024-08-08 20:32:47 +02:00
SetType(int) added to ocelot
This commit is contained in:
parent
2843022f6c
commit
86169422a7
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user