Importing the class

Link to importing-the-class

It might be required for you to import the package if you encounter any issues (like casting an Array), so better be safe than sorry and add the import at the very top of the file.

ZenScript
Copy
import crafttweaker.api.item.type.armor.ArmorItem;

Extending ItemDefinition

Link to extending-itemdefinition

ArmorItem extends ItemDefinition. That means all methods available in ItemDefinition are also available in ArmorItem

Implemented Interfaces

Link to implemented-interfaces

ArmorItem implements the following interfaces. That means all methods defined in these interfaces are also available in ArmorItem

NameTypeHas GetterHas Setter
Name
defense
Type
int
Has Getter
true
Has Setter
false
Name
equipSound
Type
SoundEvent?
Has Getter
true
Has Setter
false
Name
equipmentSlot
Type
EquipmentSlot
Has Getter
true
Has Setter
false
Name
material
Type
ArmorMaterial
Has Getter
true
Has Setter
false
Name
toughness
Type
float
Has Getter
true
Has Setter
false