ArmorMaterial
Link to armormaterial
Importare la Classe
Link to importare-la-classe
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 Copyimport crafttweaker.api.item.type.armor.ArmorMaterial;
Metodi
Link to metodi
Name: getDefenseForSlot
Return Type: int
ZenScript CopyArmorMaterial.getDefenseForSlot(slot as EquipmentSlot) as int
Parametro | Tipo |
---|---|
Parametro slot | Tipo EquipmentSlot |
Name: getDurabilityForSlot
Return Type: int
ZenScript CopyArmorMaterial.getDurabilityForSlot(slot as EquipmentSlot) as int
Parametro | Tipo |
---|---|
Parametro slot | Tipo EquipmentSlot |
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();
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();
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();
Proprietà
Link to proprietà
Nome | Tipo | Ha Getter | Ha Setter |
---|---|---|---|
Nome enchantmentValue | Tipo int | Ha Getter sì | Ha Setter no |
Nome equipSound | Tipo SoundEvent | Ha Getter sì | Ha Setter no |
Nome knockbackResistance | Tipo float | Ha Getter sì | Ha Setter no |
Nome nome | Tipo string | Ha Getter sì | Ha Setter no |
Nome repairIngredient | Tipo IIngredient | Ha Getter sì | Ha Setter no |
Nome toughness | Tipo float | Ha Getter sì | Ha Setter no |