public static enum ItemArmor.ArmorMaterial extends java.lang.Enum<ItemArmor.ArmorMaterial>
Modifier and Type | Field and Description |
---|---|
ItemStack |
repairMaterial |
Modifier and Type | Method and Description |
---|---|
int |
getDamageReductionAmount(EntityEquipmentSlot armorType) |
int |
getDurability(EntityEquipmentSlot armorType) |
int |
getEnchantability() |
java.lang.String |
getName() |
Item |
getRepairItem()
Deprecated.
|
ItemStack |
getRepairItemStack() |
SoundEvent |
getSoundEvent() |
float |
getToughness() |
ItemArmor.ArmorMaterial |
setRepairItem(ItemStack stack) |
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 ItemStack repairMaterial
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()
@Deprecated public Item getRepairItem()
public java.lang.String getName()
public float getToughness()
public ItemArmor.ArmorMaterial setRepairItem(ItemStack stack)
public ItemStack getRepairItemStack()