Rebornbuddy
Loading...
Searching...
No Matches
ff14bot.Managers.InventoryManager Class Reference

Represents a static manager for handling interactions with inventory bags and items. This class provides functionalities to access, query, and manipulate inventory data including free slots, filled slots, equipped items, and more. It also handles aggregated data related to both inventory and armory. More...

Static Public Member Functions

static Bag GetBagByInventoryBagId (InventoryBagId bagId)
 Retrieves the bag corresponding to the specified inventory bag ID.
static IEnumerable< BagGetBagsByInventoryBagId (params InventoryBagId[] bagIds)
 Retrieves a collection of bags based on the specified inventory bag IDs.
static uint ItemCount (this Item item)
 Retrieves the total count of a specific item from all filled inventory slots.
static int GetTomestoneCount (uint itemId)
 Get the amount of tomestones a player has for a given id.

Properties

static uint FreeSlots [get]
 Returns the number of free slots in the main inventory.
static IEnumerable< BagSlotEquippedItems [get]
 Returns all the slots for Equipment.
static IEnumerable< BagSlotFilledSlots [get]
 Returns all the items in the main inventory and key items.
static IEnumerable< BagSlotFilledArmorySlots [get]
 Returns all currently equipped items and filled item slots in the armory.
static IEnumerable< BagSlotFilledInventoryAndArmory [get]
 Returns all the items in inventory, key items, equipped items, and armory.

Detailed Description

Represents a static manager for handling interactions with inventory bags and items. This class provides functionalities to access, query, and manipulate inventory data including free slots, filled slots, equipped items, and more. It also handles aggregated data related to both inventory and armory.

Member Function Documentation

◆ GetBagByInventoryBagId()

Bag ff14bot.Managers.InventoryManager.GetBagByInventoryBagId ( InventoryBagId bagId)
static

Retrieves the bag corresponding to the specified inventory bag ID.

Parameters
bagIdThe inventory bag ID for which the bag needs to be retrieved.
Returns
The bag associated with the specified inventory bag ID, or null if the ID is invalid or the bag is not found.

◆ GetBagsByInventoryBagId()

IEnumerable< Bag > ff14bot.Managers.InventoryManager.GetBagsByInventoryBagId ( params InventoryBagId[] bagIds)
static

Retrieves a collection of bags based on the specified inventory bag IDs.

Parameters
bagIdsAn array of InventoryBagId specifying the bag IDs to retrieve.
Returns
An enumerable collection of Bag instances that correspond to the specified bag IDs.

◆ GetTomestoneCount()

int ff14bot.Managers.InventoryManager.GetTomestoneCount ( uint itemId)
static

Get the amount of tomestones a player has for a given id.

Most tomestones can be found by the faster method of using GetBagByInventoryBagId(InventoryBagId.Currency)

Parameters
itemId
Returns

◆ ItemCount()

uint ff14bot.Managers.InventoryManager.ItemCount ( this Item item)
static

Retrieves the total count of a specific item from all filled inventory slots.

Parameters
itemThe item for which the total count is to be retrieved.
Returns
The total count of the specified item across all filled inventory slots.

Property Documentation

◆ EquippedItems

IEnumerable<BagSlot> ff14bot.Managers.InventoryManager.EquippedItems
staticget

Returns all the slots for Equipment.

◆ FilledArmorySlots

IEnumerable<BagSlot> ff14bot.Managers.InventoryManager.FilledArmorySlots
staticget

Returns all currently equipped items and filled item slots in the armory.

◆ FilledInventoryAndArmory

IEnumerable<BagSlot> ff14bot.Managers.InventoryManager.FilledInventoryAndArmory
staticget

Returns all the items in inventory, key items, equipped items, and armory.

◆ FilledSlots

IEnumerable<BagSlot> ff14bot.Managers.InventoryManager.FilledSlots
staticget

Returns all the items in the main inventory and key items.

◆ FreeSlots

uint ff14bot.Managers.InventoryManager.FreeSlots
staticget

Returns the number of free slots in the main inventory.