Added itemstack to enderman watcher
This commit is contained in:
parent
f5c9d4e29e
commit
2843022f6c
@ -1,5 +1,7 @@
|
||||
package me.libraryaddict.disguise.disguisetypes.watchers;
|
||||
|
||||
import org.bukkit.inventory.ItemStack;
|
||||
|
||||
import me.libraryaddict.disguise.disguisetypes.Disguise;
|
||||
|
||||
public class EndermanWatcher extends LivingWatcher {
|
||||
@ -25,6 +27,7 @@ public class EndermanWatcher extends LivingWatcher {
|
||||
sendData(18);
|
||||
}
|
||||
|
||||
@Deprecated
|
||||
public void setCarriedItem(int id, int dataValue) {
|
||||
setValue(16, (byte) (id & 255));
|
||||
setValue(17, (byte) (dataValue & 255));
|
||||
@ -32,4 +35,9 @@ public class EndermanWatcher extends LivingWatcher {
|
||||
sendData(17);
|
||||
}
|
||||
|
||||
public void setCarriedItem(ItemStack itemstack) {
|
||||
setValue(16, (byte) (itemstack.getTypeId() & 255));
|
||||
setValue(17, (byte) (itemstack.getDurability() & 255));
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user