inventory

click

inventory.click(int slot, int button, int mode);

Clicks a slot in the inventory. https://wiki.vg/Protocol#Click_Container

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

Gets the current inventory's size.

getSlot

Returns the current slot.

getStackInChestSlot

Gets the item in a specified chest slot.

getStackInSlot

Gets the item in a specified slot.

open

Opens your inventory menu.

setSlot

Sets your slot.

Last updated