ItemLocationMixin

ItemLocationMixin objects can only be created for items in your equipment or inventory.
 * Source: FrameXML\ObjectAPI\ItemLocation.lua

API

 * ItemLocation:CreateEmpty : itemLocation - Creates an empty object.
 * ItemLocation:CreateFromBagAndSlot( bagID, slotIndex ) : itemLocation - Creates an object from a bagID and slotIndex.
 * ItemLocation:CreateFromEquipmentSlot( equipmentSlotIndex ) : itemLocation - Creates an object from an inventorySlotId.

Methods

 * ItemLocationMixin:Clear
 * ItemLocationMixin:SetBagAndSlot( bagID, slotIndex )
 * ItemLocationMixin:GetBagAndSlot : bagID, slotIndex
 * ItemLocationMixin:SetEquipmentSlot( equipmentSlotIndex )
 * ItemLocationMixin:GetEquipmentSlot : equipmentSlotIndex
 * ItemLocationMixin:IsEquipmentSlot : boolean
 * ItemLocationMixin:IsBagAndSlot : boolean
 * ItemLocationMixin:HasAnyLocation : boolean
 * ItemLocationMixin:IsValid : boolean
 * ItemLocationMixin:IsEqualToBagAndSlot( bagID, slotIndex ) : boolean
 * ItemLocationMixin:IsEqualToEquipmentSlot( equipmentSlotIndex ) : boolean
 * ItemLocationMixin:IsEqualTo( itemLocation ) : boolean

Example
Prints the ID and name of the item in your head slot.