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 getDefenseForSlot

Name: getDefenseForSlot

Return Type: int

ZenScript
Copy
ArmorMaterial.getDefenseForSlot(slot as EquipmentSlot) as int
参数类型描述
参数
slot
类型
EquipmentSlot
描述
No Description Provided

Link to getDurabilityForSlot

Name: getDurabilityForSlot

Return Type: int

ZenScript
Copy
ArmorMaterial.getDurabilityForSlot(slot as EquipmentSlot) as int
参数类型描述
参数
slot
类型
EquipmentSlot
描述
No Description Provided

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();
名称类型可获得可设置描述
名称
enchantmentValue
类型
int
可获得
true
可设置
false
描述
No Description Provided
名称
equipSound
类型
SoundEvent
可获得
true
可设置
false
描述
No Description Provided
名称
knockbackResistance
类型
浮点数
可获得
true
可设置
false
描述
No Description Provided
名称
name(名称)
类型
string
可获得
true
可设置
false
描述
No Description Provided
名称
repairIngredient
类型
材料(IIngredient)
可获得
true
可设置
false
描述
No Description Provided
名称
toughness
类型
浮点数
可获得
true
可设置
false
描述
No Description Provided