Inventory
Constructors
Functions
Link copied to clipboard
Link copied to clipboard
Gets the item in any slot, starting from 0.
Link copied to clipboard
Returns the window identifier number of this Inventory. This Inventory must be backed by a Container isContainer
Link copied to clipboard
Gets the index of any item in the inventory, and returns the slot number. Returns -1 if the inventory does not contain the item.
Gets the index of any item in the inventory with matching ID, and returns the slot number. Returns -1 if the inventory does not contain the item.
Link copied to clipboard
Returns true if this Inventory wraps a Container object rather than an IInventory object
Link copied to clipboard
Checks if an item can be shift clicked into a certain slot, i.e. coal into the bottom of a furnace.