Represents the type of an item - for example, Wool.
export class ItemType { private constructor(); readonly id: string; readonly localizationKey: string;} Copy
export class ItemType { private constructor(); readonly id: string; readonly localizationKey: string;}
Private
Readonly
Returns the identifier of the item type - for example, 'minecraft:apple'.
This property can't be read in early-execution mode.
Key for the localization of this ItemType's name used in .lang files.
Represents the type of an item - for example, Wool.
Source