public interface IContainer
| Modifier and Type | Method and Description |
|---|---|
int |
count(IItemStack itemStack,
boolean ignoreDamage,
boolean ignoreNBT) |
void |
detectAndSendChanges()
Sends changes to be reflected on the player's client.
|
IItemStack[] |
getItems() |
net.minecraft.inventory.Container |
getMCContainer() |
net.minecraft.inventory.IInventory |
getMCInventory() |
int |
getSize() |
IItemStack |
getSlot(int slot) |
boolean |
isCustomGUI() |
boolean |
isPlayerNotUsingContainer(IPlayer player) |
void |
setSlot(int slot,
IItemStack item) |
int getSize()
IItemStack getSlot(int slot)
void setSlot(int slot,
IItemStack item)
slot - The slot to be replaceditem - The item replacing the previous item in that slot, as an IItemStack objectnet.minecraft.inventory.IInventory getMCInventory()
net.minecraft.inventory.Container getMCContainer()
int count(IItemStack itemStack, boolean ignoreDamage, boolean ignoreNBT)
itemStack - The item stack to be searched in the containerignoreDamage - Whether damage should be ignored when searchingignoreNBT - Whether NBT values should be ignored when searchingIItemStack[] getItems()
boolean isCustomGUI()
void detectAndSendChanges()
boolean isPlayerNotUsingContainer(IPlayer player)