GetItemClassInfo

From Warcraft Wiki
Jump to navigation Jump to search

Returns the name of the item type.

name = GetItemClassInfo(classID)

Arguments

classID
number - ID of the ItemType

Returns

name
string - Name of the item type

Example

for i = 0, Enum.ItemClassMeta.NumValues-1 do
	print(i, GetItemClassInfo(i))
end
> 0, Consumable
> 1, Container
> 2, Weapon
> ...

Patch changes

Legion Patch 7.0.3 (2016-07-19): Added.

See also