Interface Loadout
A loadout defines a specific set of items that the player should have equipped and in their inventory for a particular activity. This interface provides methods to:
- Query the items defined in the loadout
- Fetch items from the bank to match the loadout
- Check if the current player setup matches the loadout
- Save loadouts to configuration for persistence
Loadouts can include:
- Inventory items (28 slots)
- Equipment items (all equipment slots)
- Rune pouch contents (for spellcasting setups)
Each section (inventory, equipment, rune pouch) can be individually enabled or disabled, allowing for flexible partial loadouts.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptiondefault voidFetches only equipment items from the nearest bank.voidfetchEquipmentFromBank(net.runelite.api.coords.WorldArea worldArea) Fetches only equipment items from the bank.default voidfetchEquipmentFromBank(BankLocation bankLocation) Fetches only equipment items from a specific bank location.default voidFetches all items from the nearest bank.voidfetchFromBank(net.runelite.api.coords.WorldArea worldArea) Fetches all items from the bank to complete this loadout.default voidfetchFromBank(BankLocation bankLocation) Fetches all items from the bank using a specific bank location.default voidFetches only inventory items from the nearest bank.voidfetchInventoryFromBank(net.runelite.api.coords.WorldArea worldArea) Fetches only inventory items from the bank.default voidfetchInventoryFromBank(BankLocation bankLocation) Fetches only inventory items from a specific bank location.default voidFetches only rune pouch items from the nearest bank.voidfetchRunePouchFromBank(net.runelite.api.coords.WorldArea worldArea) Fetches only rune pouch items from the bank.default voidfetchRunePouchFromBank(BankLocation bankLocation) Fetches only rune pouch items from a specific bank location.Gets all equipment items defined in this loadout.getEquipmentItem(int id) Gets an equipment item by its item ID.getEquipmentItemFromSlot(int slot) Gets an equipment item by its slot index.Gets all inventory items defined in this loadout.getItems()Gets all items in this loadout as a flat list.Gets all rune pouch items defined in this loadout.booleanChecks if this loadout includes rune pouch items.booleanChecks if the equipment portion of the loadout is completed.booleanChecks if the equipment section is disabled for this loadout.booleanChecks if the inventory portion of the loadout is completed.booleanChecks if the inventory section is disabled for this loadout.booleanChecks if the entire loadout is completed.booleanChecks if the rune pouch portion of the loadout is completed.booleanChecks if the rune pouch section is disabled for this loadout.voidsave(ConfigManager configManager, String configGroup, String configKey) Saves this loadout to the configuration system.
-
Method Details
-
getInventory
LoadoutItem[] getInventory()Gets all inventory items defined in this loadout.Returns an array representing the 28 inventory slots. Slots without items will contain
nullvalues.- Returns:
- an array of inventory
LoadoutItems, nevernull
-
getEquipment
LoadoutItem[] getEquipment()Gets all equipment items defined in this loadout.Returns an array representing all equipment slots. Slots without items will contain
nullvalues.- Returns:
- an array of equipment
LoadoutItems, nevernull
-
getRunePouch
LoadoutItem[] getRunePouch()Gets all rune pouch items defined in this loadout.Returns an array representing the rune pouch slots (typically 3-4 slots depending on rune pouch tier). Slots without runes will contain
nullvalues.- Returns:
- an array of rune pouch
LoadoutItems, nevernull
-
getItems
List<LoadoutItem> getItems()Gets all items in this loadout as a flat list.This includes all inventory, equipment, and rune pouch items combined into a single list.
- Returns:
- a list of all
LoadoutItems in this loadout, nevernull
-
fetchFromBank
void fetchFromBank(net.runelite.api.coords.WorldArea worldArea) Fetches all items from the bank to complete this loadout.This will navigate to the specified bank area if needed, open the bank, and withdraw all required items for inventory, equipment, and rune pouch.
- Parameters:
worldArea- the world area containing a bank to use
-
fetchEquipmentFromBank
void fetchEquipmentFromBank(net.runelite.api.coords.WorldArea worldArea) Fetches only equipment items from the bank.- Parameters:
worldArea- the world area containing a bank to use
-
fetchInventoryFromBank
void fetchInventoryFromBank(net.runelite.api.coords.WorldArea worldArea) Fetches only inventory items from the bank.- Parameters:
worldArea- the world area containing a bank to use
-
fetchRunePouchFromBank
void fetchRunePouchFromBank(net.runelite.api.coords.WorldArea worldArea) Fetches only rune pouch items from the bank.- Parameters:
worldArea- the world area containing a bank to use
-
fetchFromBank
Fetches all items from the bank using a specific bank location.- Parameters:
bankLocation- the bank location to use
-
fetchFromBank
default void fetchFromBank()Fetches all items from the nearest bank.Automatically finds and uses the nearest bank to the player's current location.
-
fetchEquipmentFromBank
Fetches only equipment items from a specific bank location.- Parameters:
bankLocation- the bank location to use
-
fetchEquipmentFromBank
default void fetchEquipmentFromBank()Fetches only equipment items from the nearest bank. -
fetchInventoryFromBank
Fetches only inventory items from a specific bank location.- Parameters:
bankLocation- the bank location to use
-
fetchInventoryFromBank
default void fetchInventoryFromBank()Fetches only inventory items from the nearest bank. -
fetchRunePouchFromBank
Fetches only rune pouch items from a specific bank location.- Parameters:
bankLocation- the bank location to use
-
fetchRunePouchFromBank
default void fetchRunePouchFromBank()Fetches only rune pouch items from the nearest bank. -
isLoadoutCompleted
boolean isLoadoutCompleted()Checks if the entire loadout is completed.Returns
trueonly if all enabled sections (inventory, equipment, and rune pouch) match their defined configurations.- Returns:
trueif all loadout requirements are met
-
isEquipmentCompleted
boolean isEquipmentCompleted()Checks if the equipment portion of the loadout is completed.- Returns:
trueif all required equipment is worn
-
isInventoryCompleted
boolean isInventoryCompleted()Checks if the inventory portion of the loadout is completed.- Returns:
trueif all required inventory items are present
-
isRunePouchCompleted
boolean isRunePouchCompleted()Checks if the rune pouch portion of the loadout is completed.- Returns:
trueif all required runes are in the rune pouch
-
isInventoryDisabled
boolean isInventoryDisabled()Checks if the inventory section is disabled for this loadout.- Returns:
trueif inventory checking/fetching is disabled
-
isEquipmentDisabled
boolean isEquipmentDisabled()Checks if the equipment section is disabled for this loadout.- Returns:
trueif equipment checking/fetching is disabled
-
isRunePouchDisabled
boolean isRunePouchDisabled()Checks if the rune pouch section is disabled for this loadout.- Returns:
trueif rune pouch checking/fetching is disabled
-
hasRunePouch
boolean hasRunePouch()Checks if this loadout includes rune pouch items.- Returns:
trueif the loadout has rune pouch items defined
-
getEquipmentItem
Gets an equipment item by its item ID.- Parameters:
id- the item ID to search for- Returns:
- the
LoadoutItemwith the matching ID, ornullif not found
-
getEquipmentItemFromSlot
Gets an equipment item by its slot index.- Parameters:
slot- the equipment slot index- Returns:
- the
LoadoutItemat the specified slot, ornullif empty
-
save
Saves this loadout to the configuration system.The loadout will be serialized and stored using the provided configuration group and key, allowing it to be loaded in future sessions.
- Parameters:
configManager- the configuration manager to save toconfigGroup- the configuration group nameconfigKey- the configuration key within the group
-