click
inventory.click(int slot, int button, int mode);
Clicks a slot in the inventory.
getBookContents
List<String> pages = inventory.getBookContents();
Returns a list of pages in a json format.
getChest
String chestName = inventory.getChest();
Gets the current chest name.
getChestSize
int chestSize = inventory.getChestSize();
Gets the current chest's size.
getContainer
String container = inventory.getContainer();
Gets the current container name.
getSize
int size = inventory.getSize();
Gets the current inventory's size.
getSlot
int slot = inventory.getSlot();
Returns the current slot.
getStackInChestSlot
ItemStack item = inventory.getStackInChestSlot(int slot);
Gets the item in a specified chest slot.
getStackInSlot
ItemStack item = inventory.getStackInSlot(int slot);
Gets the item in a specified slot.
open
Opens your inventory menu.
setSlot
inventory.setSlot(int slot);
Sets your slot.