ArmorMaterial
Link to armormaterial
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 Copyimport crafttweaker.api.item.type.armor.ArmorMaterial;
Methods
Link to methods
Name: getDefenseForSlot
Return Type: int
ZenScript CopyArmorMaterial.getDefenseForSlot(slot as EquipmentSlot) as int
Parameter | Type | Description |
---|---|---|
Parameter slot | Type EquipmentSlot | Description No Description Provided |
Name: getDurabilityForSlot
Return Type: int
ZenScript CopyArmorMaterial.getDurabilityForSlot(slot as EquipmentSlot) as int
Parameter | Type | Description |
---|---|---|
Parameter slot | Type EquipmentSlot | Description No Description Provided |
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();
Properties
Link to properties
이름 | Type | Has Getter | Has Setter | Description |
---|---|---|---|---|
이름 enchantmentValue | Type int | Has Getter true | Has Setter false | Description No Description Provided |
이름 equipSound | Type SoundEvent | Has Getter true | Has Setter false | Description No Description Provided |
이름 knockbackResistance | Type float | Has Getter true | Has Setter false | Description No Description Provided |
이름 name | Type string | Has Getter true | Has Setter false | Description No Description Provided |
이름 repairIngredient | Type IIngredient | Has Getter true | Has Setter false | Description No Description Provided |
이름 toughness | Type float | Has Getter true | Has Setter false | Description No Description Provided |