ItemDefinition
Importing the class
If you need to reference this type directly, like when casting an Array, or as a parameter, you will need to import it. Simply add the import at the top of the file.
import crafttweaker.api.item.ItemDefinition;
Implements
ItemDefinition
implements the following interfaces:
Undocumented Interfaces
FeatureElement
,IItemExtension
Members
asItem() as Item
as Item
// Item as ItemDefinitionmyItem as Item
Return Type:
ItemDefinition
Getter
// Item.commandString as stringmyItem.commandString
Return Type:
string
commandString() as string
// Item.commandString() as string;myItem.commandString();
Return Type:
string
Getter
// Item.defaultInstance as IItemStackmyItem.defaultInstance
Return Type:
IItemStack
defaultInstance() as IItemStack
implicit as IItemStack
// Item as IItemStackmyItem as IItemStack
Return Type:
IItemStack
Getter
// Item.registryName as ResourceLocationmyItem.registryName
Return Type:
ResourceLocation
registryName() as ResourceLocation