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

ArmorItem

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.armor.ArmorItem;

Extends

ArmorItem extends ItemDefinition.

Implements

ArmorItem implements the following interfaces:

Equipable,ItemLike,Vanishable

Undocumented Interfaces

FeatureElement,IForgeItem

Members

asItem() as Item
script.zs
// ArmorItem.asItem() as ItemDefinition;
myArmorItem.asItem();

Return Type: ItemDefinition

as Item
script.zs
// ArmorItem as ItemDefinition
myArmorItem as Item

Return Type: ItemDefinition

Getter
script.zs
// ArmorItem.commandString as string
myArmorItem.commandString

Return Type: string

commandString() as string
script.zs
// ArmorItem.commandString() as string;
myArmorItem.commandString();

Return Type: string

Getter
script.zs
// ArmorItem.defaultInstance as IItemStack
myArmorItem.defaultInstance

Return Type: IItemStack

defaultInstance() as IItemStack
script.zs
// ArmorItem.defaultInstance() as IItemStack;
myArmorItem.defaultInstance();

Return Type: IItemStack

implicit as IItemStack
script.zs
// ArmorItem as IItemStack
myArmorItem as IItemStack

Return Type: IItemStack

Getter
script.zs
// ArmorItem.defense as int
myArmorItem.defense

Return Type: int

Getter
script.zs
// ArmorItem.equipmentSlot as EquipmentSlot
myArmorItem.equipmentSlot

Return Type: EquipmentSlot

Getter
script.zs
// ArmorItem.equipSound as SoundEvent
myArmorItem.equipSound

Return Type: SoundEvent

Getter
script.zs
// ArmorItem.material as ArmorMaterial
myArmorItem.material

Return Type: ArmorMaterial

Getter
script.zs
// ArmorItem.registryName as ResourceLocation
myArmorItem.registryName

Return Type: ResourceLocation

registryName() as ResourceLocation
script.zs
// ArmorItem.registryName() as ResourceLocation;
myArmorItem.registryName();

Return Type: ResourceLocation

Getter
script.zs
// ArmorItem.toughness as float
myArmorItem.toughness

Return Type: float