BlockItem
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.type.block.BlockItem;
Extends
BlockItem extends ItemDefinition
.
Implements
BlockItem
implements the following interfaces:
Undocumented Interfaces
FeatureElement
,IItemExtension
Members
asItem() as Item
as Item
// BlockItem as ItemDefinitionmyBlockItem as Item
Return Type:
ItemDefinition
Getter
// BlockItem.commandString as stringmyBlockItem.commandString
Return Type:
string
commandString() as string
// BlockItem.commandString() as string;myBlockItem.commandString();
Return Type:
string
Getter
// BlockItem.defaultInstance as IItemStackmyBlockItem.defaultInstance
Return Type:
IItemStack
defaultInstance() as IItemStack
implicit as IItemStack
// BlockItem as IItemStackmyBlockItem as IItemStack
Return Type:
IItemStack
Getter
// BlockItem.registryName as ResourceLocationmyBlockItem.registryName
Return Type:
ResourceLocation
registryName() as ResourceLocation