public static enum ItemArmor.ArmorMaterial extends java.lang.Enum<ItemArmor.ArmorMaterial>
Modifier and Type | Field and Description |
---|---|
Item |
customCraftingMaterial |
Modifier and Type | Method and Description |
---|---|
int |
getDamageReductionAmount(EntityEquipmentSlot armorType) |
int |
getDurability(EntityEquipmentSlot armorType) |
int |
getEnchantability() |
java.lang.String |
getName() |
Item |
getRepairItem() |
SoundEvent |
getSoundEvent() |
float |
getToughness() |
static ItemArmor.ArmorMaterial |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ItemArmor.ArmorMaterial[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ItemArmor.ArmorMaterial LEATHER
public static final ItemArmor.ArmorMaterial CHAIN
public static final ItemArmor.ArmorMaterial IRON
public static final ItemArmor.ArmorMaterial GOLD
public static final ItemArmor.ArmorMaterial DIAMOND
public Item customCraftingMaterial
public static ItemArmor.ArmorMaterial[] values()
for (ItemArmor.ArmorMaterial c : ItemArmor.ArmorMaterial.values()) System.out.println(c);
public static ItemArmor.ArmorMaterial valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic int getDurability(EntityEquipmentSlot armorType)
public int getDamageReductionAmount(EntityEquipmentSlot armorType)
public int getEnchantability()
public SoundEvent getSoundEvent()
public Item getRepairItem()
public java.lang.String getName()
public float getToughness()