Equipment

public class Equipment

Utilities for interacting with the equipment tab

Types

Slot
Link copied to clipboard
public enum Slot
Represents an equipment slot in the equipment tab

Functions

contains
Link copied to clipboard
static boolean contains(Array<int> itemId)
Determines if an item with the given itemId is equipped
static boolean contains(Array<String> itemName)
Determines if an item with the given itemName is equipped
static boolean contains(Predicate<EquipmentItem> filter)
Checks if any equipped item exists matching the specified filter
equip
Link copied to clipboard
static boolean equip(int itemId)
Equips an item from the inventory with the given itemId.
static boolean equip(String itemName)
Equips an item from the inventory with the given itemName.
static boolean equip(InventoryItem item)
Equips the given InventoryItem.
getAll
Link copied to clipboard
static List<EquipmentItemgetAll()
Gets all the items that the player character has equipped.
getCount
Link copied to clipboard
static int getCount(Array<int> id)
Counts the stacks of all items with the specified ids
static int getCount(Array<String> name)
Counts the stacks of all items with the specified names
static int getCount(Predicate<EquipmentItem> filter)
Counts the stacks of all items matching the specified filter
remove
Link copied to clipboard
static int remove(int itemId)
Unequips an item from equipment with the given itemId
static int remove(String itemName)
Unequips an item from equipment with the given itemName