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.ArmorMaterial;

Link to getDefenseForType

Name: getDefenseForType

Return Type: int

ZenScript
Copy
ArmorMaterial.getDefenseForType(type as Type) as int
ParameterType
Parameter
type
Type
Type

Link to getDurabilityForType

Name: getDurabilityForType

Return Type: int

ZenScript
Copy
ArmorMaterial.getDurabilityForType(type as Type) as int
ParameterType
Parameter
type
Type
Type

Link to getEnchantmentValue

Name: getEnchantmentValue

Return Type: int

ZenScript
Copy
// ArmorMaterial.getEnchantmentValue() as int

myArmorMaterial.getEnchantmentValue();

Name: getEquipSound

Return Type: SoundEvent

ZenScript
Copy
// ArmorMaterial.getEquipSound() as SoundEvent

myArmorMaterial.getEquipSound();

Link to getKnockbackResistance

Name: getKnockbackResistance

Return Type: float

ZenScript
Copy
// ArmorMaterial.getKnockbackResistance() as float

myArmorMaterial.getKnockbackResistance();

Name: getName

Return Type: string

ZenScript
Copy
// ArmorMaterial.getName() as string

myArmorMaterial.getName();

Link to getRepairIngredient

Name: getRepairIngredient

Return Type: IIngredient

ZenScript
Copy
// ArmorMaterial.getRepairIngredient() as IIngredient

myArmorMaterial.getRepairIngredient();

Name: getToughness

Return Type: float

ZenScript
Copy
// ArmorMaterial.getToughness() as float

myArmorMaterial.getToughness();
NameTypeHas GetterHas Setter
Name
enchantmentValue
Type
int
Has Getter
true
Has Setter
false
Name
equipSound
Type
SoundEvent
Has Getter
true
Has Setter
false
Name
knockbackResistance
Type
float
Has Getter
true
Has Setter
false
Name
name
Type
string
Has Getter
true
Has Setter
false
Name
repairIngredient
Type
IIngredient
Has Getter
true
Has Setter
false
Name
toughness
Type
float
Has Getter
true
Has Setter
false