Home Commands Examples Getting Started With Scripts Global Keywords
BracketDumpers BracketHandlers BracketValidators ResourceLocationBracketHandler

TieredItem

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.

script.zs
import crafttweaker.api.item.type.tiered.TieredItem;

Extends

TieredItem extends ItemDefinition.

Implements

TieredItem implements the following interfaces:

ItemLike

Undocumented Interfaces

FeatureElement,IItemExtension

Members

asItem() as Item
script.zs
// TieredItem.asItem() as Item;
myTieredItem.asItem();

Return Type: ItemDefinition

as Item
script.zs
// TieredItem as Item
myTieredItem as Item

Return Type: ItemDefinition

Getter
script.zs
// TieredItem.commandString as string
myTieredItem.commandString

Return Type: string

commandString() as string
script.zs
// TieredItem.commandString() as string;
myTieredItem.commandString();

Return Type: string

Getter
script.zs
// TieredItem.defaultInstance as IItemStack
myTieredItem.defaultInstance

Return Type: IItemStack

defaultInstance() as IItemStack
script.zs
// TieredItem.defaultInstance() as IItemStack;
myTieredItem.defaultInstance();

Return Type: IItemStack

implicit as IItemStack
script.zs
// TieredItem as IItemStack
myTieredItem as IItemStack

Return Type: IItemStack

getTier() as Tier
Gets the tier of this item.

Returns: The IItemTier of this item.

script.zs
// TieredItem.getTier() as Tier;
myTieredItem.getTier();

Return Type: Tier

Getter
script.zs
// TieredItem.registryName as ResourceLocation
myTieredItem.registryName

Return Type: ResourceLocation

registryName() as ResourceLocation
script.zs
// TieredItem.registryName() as ResourceLocation;
myTieredItem.registryName();

Return Type: ResourceLocation