Skip to main content

Struct GameInventoryItem

Dalamud wrapper around a ClientStructs InventoryItem.

Assembly: Dalamud.dll
View Source
Declaration
public struct GameInventoryItem : IEquatable<GameInventoryItem>

Implements:
System.IEquatable<Dalamud.Game.Inventory.GameInventoryItem>

Properties

IsEmpty

Gets a value indicating whether the this Dalamud.Game.Inventory.GameInventoryItem is empty.

View Source
Declaration
public bool IsEmpty { get; }

ContainerType

Gets the container inventory type.

View Source
Declaration
public GameInventoryType ContainerType { get; }

InventorySlot

Gets the inventory slot index this item is in.

View Source
Declaration
public uint InventorySlot { get; }

ItemId

Gets the item id.

View Source
Declaration
public uint ItemId { get; }

Quantity

Gets the quantity of items in this item stack.

View Source
Declaration
public uint Quantity { get; }

Spiritbond

Gets the spiritbond of this item.

View Source
Declaration
public uint Spiritbond { get; }

Condition

Gets the repair condition of this item.

View Source
Declaration
public uint Condition { get; }

IsHq

Gets a value indicating whether the item is High Quality.

View Source
Declaration
public bool IsHq { get; }

IsCompanyCrestApplied

Gets a value indicating whether the item has a company crest applied.

View Source
Declaration
public bool IsCompanyCrestApplied { get; }

IsRelic

Gets a value indicating whether the item is a relic.

View Source
Declaration
public bool IsRelic { get; }

IsCollectable

Gets a value indicating whether the is a collectable.

View Source
Declaration
public bool IsCollectable { get; }

Materia

Gets the array of materia types.

View Source
Declaration
public ReadOnlySpan<ushort> Materia { get; }

MateriaGrade

Gets the array of materia grades.

View Source
Declaration
public ReadOnlySpan<byte> MateriaGrade { get; }

Address

Gets the address of native inventory item in the game.

Can be 0 if this instance of Dalamud.Game.Inventory.GameInventoryItem does not point to a valid set of container type and slot.

Note that this instance of Dalamud.Game.Inventory.GameInventoryItem can be a snapshot; it may not necessarily match the data you can query from the game using this address value.

View Source
Declaration
public nint Address { get; }

Stains

Gets the color used for this item.

View Source
Declaration
public ReadOnlySpan<ushort> Stains { get; }

GlamourId

Gets the glamour id for this item.

View Source
Declaration
public uint GlamourId { get; }

Methods

Equals(in GameInventoryItem)

Indicates whether the current object is equal to another object of the same type.

View Source
Declaration
public readonly bool Equals(in GameInventoryItem other)
Returns

System.Boolean: true if the current object is equal to the <code class="paramref">other</code> parameter; otherwise, false.

Parameters
TypeNameDescription
Dalamud.Game.Inventory.GameInventoryItemotherAn object to compare with this object.

Equals(object)

Determines whether the specified object is equal to the current object.

View Source
Declaration
public override bool Equals(object obj)
Returns

System.Boolean: true if the specified object is equal to the current object; otherwise, false.

Parameters
TypeNameDescription
System.ObjectobjThe object to compare with the current object.

GetHashCode()

Serves as the default hash function.

View Source
Declaration
public override int GetHashCode()
Returns

System.Int32: A hash code for the current object.### ToString() Returns a string that represents the current object.

View Source
Declaration
public override string ToString()
Returns

System.String: A string that represents the current object.

Implements

  • System.IEquatable<Dalamud.Game.Inventory.GameInventoryItem>