public class CloudCreatureInventory extends BaseInventory implements org.cloudburstmc.api.inventory.CreatureInventory
holder, maxStackSize, name, size, slots, title, type, viewers| Constructor and Description |
|---|
CloudCreatureInventory(EntityCreature entity) |
| Modifier and Type | Method and Description |
|---|---|
void |
decrementHandCount() |
org.cloudburstmc.api.item.ItemStack[] |
getArmorContents() |
CloudItemStack |
getArmorItem(int index) |
int |
getHeldItemIndex() |
EntityCreature |
getHolder() |
CloudItemStack |
getItemInHand() |
org.cloudburstmc.api.item.ItemStack |
getOffHand() |
protected int |
getOffHandIndex() |
int |
getSize() |
void |
incrementHandCount() |
void |
sendArmorContents(CloudPlayer player) |
void |
sendArmorContents(CloudPlayer[] players) |
void |
sendArmorContents(Collection<CloudPlayer> players) |
void |
sendArmorSlot(int index,
CloudPlayer player) |
void |
sendArmorSlot(int index,
CloudPlayer[] players) |
void |
sendArmorSlot(int index,
Collection<CloudPlayer> players) |
void |
sendHeldItem(CloudPlayer... players) |
void |
sendHeldItem(Collection<CloudPlayer> players) |
void |
sendOffHandContents(CloudPlayer player) |
void |
sendOffHandContents(CloudPlayer[] players) |
void |
sendOffHandContents(Collection<CloudPlayer> players) |
void |
sendOffHandSlot(CloudPlayer player) |
void |
sendOffHandSlot(CloudPlayer[] players) |
void |
sendOffHandSlot(Collection<CloudPlayer> players) |
void |
setArmorContents(org.cloudburstmc.api.item.ItemStack[] items) |
boolean |
setArmorItem(int index,
org.cloudburstmc.api.item.ItemStack item,
boolean ignoreArmorEvents) |
void |
setHeldItemIndex(int index) |
boolean |
setItemInHand(org.cloudburstmc.api.item.ItemStack item) |
void |
setOffHandContents(org.cloudburstmc.api.item.ItemStack offhand) |
void |
setSize(int size) |
addItem, addItemToFirstEmptySlot, all, canAddItem, clear, clearAll, close, contains, decrementCount, first, firstEmpty, firstFit, firstNonEmpty, getContents, getEmptySlotsCount, getFreeSpace, getItem, getMaxStackSize, getName, getTitle, getType, getViewers, incrementCount, isEmpty, isFull, onClose, onOpen, onSlotChange, open, remove, removeItem, sendContents, sendSlot, setContents, setItem, setMaxStackSizeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetBoots, getChestplate, getHelmet, getLeggings, setArmorItem, setBoots, setChestplate, setHelmet, setLeggingsaddItem, all, canAddItem, clear, clear, clearAll, close, contains, decrementCount, first, first, firstEmpty, firstFit, firstFit, firstNonEmpty, getContents, getFreeSpace, getItem, getMaxStackSize, getName, getTitle, getType, getViewers, incrementCount, isEmpty, isFull, onClose, onOpen, onSlotChange, open, remove, removeItem, sendContents, sendContents, sendContents, sendSlot, sendSlot, sendSlot, setContents, setItem, setItem, setMaxStackSizepublic CloudCreatureInventory(EntityCreature entity)
public EntityCreature getHolder()
getHolder in interface org.cloudburstmc.api.inventory.CreatureInventorygetHolder in interface org.cloudburstmc.api.inventory.InventorygetHolder in class BaseInventorypublic int getSize()
getSize in interface org.cloudburstmc.api.inventory.InventorygetSize in class BaseInventorypublic void setSize(int size)
setSize in class BaseInventoryprotected int getOffHandIndex()
public int getHeldItemIndex()
getHeldItemIndex in interface org.cloudburstmc.api.inventory.CreatureInventorypublic void setHeldItemIndex(int index)
setHeldItemIndex in interface org.cloudburstmc.api.inventory.CreatureInventorypublic void decrementHandCount()
decrementHandCount in interface org.cloudburstmc.api.inventory.CreatureInventorypublic void incrementHandCount()
incrementHandCount in interface org.cloudburstmc.api.inventory.CreatureInventorypublic CloudItemStack getItemInHand()
getItemInHand in interface org.cloudburstmc.api.inventory.CreatureInventorypublic boolean setItemInHand(org.cloudburstmc.api.item.ItemStack item)
setItemInHand in interface org.cloudburstmc.api.inventory.CreatureInventorypublic void sendHeldItem(Collection<CloudPlayer> players)
public void sendHeldItem(CloudPlayer... players)
public CloudItemStack getArmorItem(int index)
getArmorItem in interface org.cloudburstmc.api.inventory.CreatureInventorypublic boolean setArmorItem(int index,
org.cloudburstmc.api.item.ItemStack item,
boolean ignoreArmorEvents)
setArmorItem in interface org.cloudburstmc.api.inventory.CreatureInventorypublic org.cloudburstmc.api.item.ItemStack[] getArmorContents()
getArmorContents in interface org.cloudburstmc.api.inventory.CreatureInventorypublic org.cloudburstmc.api.item.ItemStack getOffHand()
getOffHand in interface org.cloudburstmc.api.inventory.CreatureInventorypublic void setOffHandContents(org.cloudburstmc.api.item.ItemStack offhand)
setOffHandContents in interface org.cloudburstmc.api.inventory.CreatureInventorypublic void sendOffHandContents(Collection<CloudPlayer> players)
public void sendOffHandContents(CloudPlayer player)
public void sendOffHandContents(CloudPlayer[] players)
public void sendOffHandSlot(CloudPlayer player)
public void sendOffHandSlot(Collection<CloudPlayer> players)
public void sendOffHandSlot(CloudPlayer[] players)
public void sendArmorContents(CloudPlayer player)
public void sendArmorContents(CloudPlayer[] players)
public void setArmorContents(org.cloudburstmc.api.item.ItemStack[] items)
public void sendArmorContents(Collection<CloudPlayer> players)
public void sendArmorSlot(int index,
CloudPlayer player)
public void sendArmorSlot(int index,
CloudPlayer[] players)
public void sendArmorSlot(int index,
Collection<CloudPlayer> players)
Copyright © 2021. All rights reserved.