Package noppes.npcs.api
Interface IContainer
- All Known Subinterfaces:
IContainerCustomChest
public interface IContainer
-
Method Summary
Modifier and Type Method Description int
count(IItemStack item, boolean ignoreDamage, boolean ignoreNBT)
IItemStack[]
getItems()
net.minecraft.inventory.Container
getMCContainer()
Expert users onlynet.minecraft.inventory.IInventory
getMCInventory()
Expert users onlyint
getSize()
IItemStack
getSlot(int slot)
void
setSlot(int slot, IItemStack item)
-
Method Details
-
getSize
int getSize() -
getSlot
-
setSlot
-
getMCInventory
net.minecraft.inventory.IInventory getMCInventory()Expert users only- Returns:
- Returns minecrafts container
-
getMCContainer
net.minecraft.inventory.Container getMCContainer()Expert users only- Returns:
- Returns minecrafts container
-
count
- Parameters:
item
-ignoreDamage
- Whether to ignore the item_damage value when comparingignoreNBT
- Whether to ignore NBT when comparing- Returns:
-
getItems
IItemStack[] getItems()
-