ItemLocationMixin

From Wowpedia
Jump to: navigation, search

Methods

The ItemLocationMixin interface is defined in ObjectAPI/ItemLocation.lua. It can only be created for items in your equipment or inventory

item = ItemLocation:CreateEmpty()
item = ItemLocation:CreateFromBagAndSlot(bagID, slotIndex)
item = ItemLocation:CreateFromEquipmentSlot(equipmentSlotIndex)
ItemLocationMixin:Clear()
ItemLocationMixin:SetBagAndSlot(bagID, slotIndex)
bagID, slotIndex = ItemLocationMixin:GetBagAndSlot()
ItemLocationMixin:SetEquipmentSlot(equipmentSlotIndex)
equipmentSlotIndex = ItemLocationMixin:GetEquipmentSlot()
isEquipmentSlot = ItemLocationMixin:IsEquipmentSlot()
isBagAndSlot = ItemLocationMixin:IsBagAndSlot()
hasAnyLocation = ItemLocationMixin:HasAnyLocation()
isValid = ItemLocationMixin:IsValid()
isEqual = ItemLocationMixin:IsEqualToBagAndSlot(otherBagID, otherSlotIndex)
isEqual = ItemLocationMixin:IsEqualToEquipmentSlot(otherEquipmentSlotIndex)
isEqual = ItemLocationMixin:IsEqualTo(otherItemLocation)

Patch changes

See also