Lore archive · Warcraft Wiki, 2023 dump
ItemMixin
Last wiki revision 2023-01-28
Source: FrameXML\ObjectAPI\Item.lua
- Item:CreateFromItemLocation( itemLocation ) : item - Creates an object from an ItemLocation.
- Item:CreateFromBagAndSlot( bagID, slotIndex ) : item - Creates an object from a bagID and slotIndex.
- Item:CreateFromEquipmentSlot( equipmentSlotIndex ) : item - Creates an object from an inventorySlotId.
- Item:CreateFromItemLink( itemLink ) : item - Creates an object from an ItemLink.
- Item:CreateFromItemID( itemID ) : item - Creates an object from an item ID.
- ItemMixin:SetItemLocation( itemLocation )
- ItemMixin:SetItemLink( itemLink )
- ItemMixin:SetItemID( itemID )
- ItemMixin:GetItemLocation : itemLocation
- ItemMixin:HasItemLocation : boolean
- ItemMixin:Clear
- ItemMixin:IsItemEmpty : boolean
- ItemMixin:GetStaticBackingItem : staticBackingItem
- ItemMixin:IsItemInPlayersControl : boolean
- ItemMixin:GetItemID : id
- ItemMixin:IsItemLocked : boolean
- ItemMixin:LockItem
- ItemMixin:UnlockItem
- ItemMixin:GetItemIcon : icon -- requires item data to be loaded
- ItemMixin:GetItemName : name -- requires item data to be loaded
- ItemMixin:GetItemLink : link -- requires item data to be loaded
- ItemMixin:GetItemQuality : quality -- requires item data to be loaded
- ItemMixin:GetCurrentItemLevel : level -- requires item data to be loaded
- ItemMixin:GetItemQualityColor : qualityColor -- requires item data to be loaded
- ItemMixin:GetInventoryType : inventoryType
- ItemMixin:GetItemGUID : guid
- ItemMixin:GetInventoryTypeName : inventoryTypeName
- ItemMixin:IsItemDataCached : boolean
- ItemMixin:IsDataEvictable : boolean
- ItemMixin:ContinueOnItemLoad( callbackFunction )
- ItemMixin:ContinueWithCancelOnItemLoad( callbackFunction ) : cancelFunc
- Item information may not have been cached. You can use ItemMixin:ContinueOnItemLoad to asynchronously query the data.
Certain items no longer return information from the server. For example itemID 17 still returns for but will have and will never return information. This will make never fire the callback. One workaround is to use with a timeout or directly listen to.
- ->
Source
https://warcraft.wiki.gg/wiki/ItemMixin · retrieved 2023-11-13 · CC BY-SA 4.0
Converted from wikitext with templates, tables and images removed, so some sentences may be missing values.
This archive predates WoW: Forever. For collected gameplay facts see the Forever database. Search the archive.