Wowpedia
Advertisement
Wowpedia
230,031
pages

ItemLocationMixin objects can only be created for items in your equipment or inventory.

Source: FrameXML\ObjectAPI\ItemLocation.lua

API

Methods

Example

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

local itemLoc = ItemLocation:CreateFromEquipmentSlot(INVSLOT_HEAD)

if itemLoc:IsValid() then
	local id = C_Item.GetItemID(itemLoc)
	local name = C_Item.GetItemName(itemLoc)
	print(id, name) -- 21524, "Red Winter Hat"
end

Patch changes

External links

Wowpedia: WhatLinksHere