Interface IContainer

All Known Subinterfaces:
IContainerCustomChest

public interface IContainer
  • Method Details

    • getSize

      int getSize()
    • getSlot

      IItemStack getSlot​(int slot)
    • setSlot

      void setSlot​(int slot, IItemStack item)
    • 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

      int count​(IItemStack item, boolean ignoreDamage, boolean ignoreNBT)
      Parameters:
      item -
      ignoreDamage - Whether to ignore the item_damage value when comparing
      ignoreNBT - Whether to ignore NBT when comparing
      Returns:
    • getItems

      IItemStack[] getItems()