Struct GameInventoryItem
Dalamud wrapper around a ClientStructs InventoryItem.
Assembly: Dalamud.dll
View Source
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
public bool IsEmpty { get; }
ContainerType
Gets the container inventory type.
View Source
public GameInventoryType ContainerType { get; }
InventorySlot
Gets the inventory slot index this item is in.
View Source
public uint InventorySlot { get; }
ItemId
Gets the item id.
View Source
public uint ItemId { get; }
Quantity
Gets the quantity of items in this item stack.
View Source
public uint Quantity { get; }
Spiritbond
Gets the spiritbond of this item.
View Source
public uint Spiritbond { get; }
Condition
Gets the repair condition of this item.
View Source
public uint Condition { get; }
IsHq
Gets a value indicating whether the item is High Quality.
View Source
public bool IsHq { get; }
IsCompanyCrestApplied
Gets a value indicating whether the item has a company crest applied.
View Source
public bool IsCompanyCrestApplied { get; }
IsRelic
Gets a value indicating whether the item is a relic.
View Source
public bool IsRelic { get; }
IsCollectable
Gets a value indicating whether the is a collectable.
View Source
public bool IsCollectable { get; }
Materia
Gets the array of materia types.
View Source
public ReadOnlySpan<ushort> Materia { get; }
MateriaGrade
Gets the array of materia grades.
View Source
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
public nint Address { get; }
Stains
Gets the color used for this item.
View Source
public ReadOnlySpan<ushort> Stains { get; }
GlamourId
Gets the glamour id for this item.
View Source
public uint GlamourId { get; }
Methods
Equals(in GameInventoryItem)
Indicates whether the current object is equal to another object of the same type.
View Source
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
Type | Name | Description |
---|---|---|
Dalamud.Game.Inventory.GameInventoryItem | other | An object to compare with this object. |
Equals(object)
Determines whether the specified object is equal to the current object.
View Source
public override bool Equals(object obj)
Returns
System.Boolean
: true if the specified object is equal to the current object; otherwise, false.
Parameters
Type | Name | Description |
---|---|---|
System.Object | obj | The object to compare with the current object. |
GetHashCode()
Serves as the default hash function.
View Source
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
public override string ToString()
Returns
System.String
: A string that represents the current object.
Implements
System.IEquatable<Dalamud.Game.Inventory.GameInventoryItem>