equip

static boolean equip(int itemId)

Equips an item from the inventory with the given itemId.

Return

True if the item click was successful. False otherwise.

static boolean equip(String itemName)

Equips an item from the inventory with the given itemName.

Return

True if the item click was successful. False otherwise.

static boolean equip(InventoryItem item)

Equips the given InventoryItem.

Return

True if the item click was successful. False otherwise.