Example usage for Java net.minecraftforge.items IItemHandler fields, constructors, methods, implement or subclass
The text is from its open source code.
ItemStack | extractItem(int slot, int amount, boolean simulate) Extracts an ItemStack from the given slot. |
int | getSlotLimit(int slot) Retrieves the maximum stack size allowed to exist in the given slot. |
int | getSlots() Returns the number of slots available |
ItemStack | getStackInSlot(int slot) Returns the ItemStack in a given slot. |
ItemStack | insertItem(int slot, @Nonnull ItemStack stack, boolean simulate) Inserts an ItemStack into the given slot and return the remainder. |