ArmorMaterials
Link to armormaterials
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.ArmorMaterials;
Interfacce Implementate
Link to interfacce-implementate
ArmorMaterials implements the following interfaces. That means all methods defined in these interfaces are also available in ArmorMaterials
Enum Constants
Link to enum-constants
ArmorMaterials is an enum. It has 7 enum constants. They are accessible using the code below.
ZenScript Copy<constant:minecraft:armor/materials:leather>
<constant:minecraft:armor/materials:chain>
<constant:minecraft:armor/materials:iron>
<constant:minecraft:armor/materials:gold>
<constant:minecraft:armor/materials:diamond>
<constant:minecraft:armor/materials:turtle>
<constant:minecraft:armor/materials:netherite>