|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||
java.lang.Objectjava.lang.Enum<EnumArmorMaterial>
net.minecraft.item.EnumArmorMaterial
public enum EnumArmorMaterial
| Enum Constant Summary | |
|---|---|
CHAIN
|
|
CLOTH
|
|
DIAMOND
|
|
GOLD
|
|
IRON
|
|
| Field Summary | |
|---|---|
Item |
customCraftingMaterial
|
| Method Summary | |
|---|---|
int |
getArmorCraftingMaterial()
Return the crafting material for this armor material, used to determine the item that can be used to repair an armor piece with an anvil |
int |
getDamageReductionAmount(int par1)
Return the damage reduction (each 1 point is a half a shield on gui) of the piece index passed (0 = helmet, 1 = plate, 2 = legs and 3 = boots) |
int |
getDurability(int par1)
Returns the durability for a armor slot of for this type. |
int |
getEnchantability()
Return the enchantability factor of the material. |
static EnumArmorMaterial |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static EnumArmorMaterial[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
| Methods inherited from class java.lang.Enum |
|---|
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Enum Constant Detail |
|---|
public static final EnumArmorMaterial CLOTH
public static final EnumArmorMaterial CHAIN
public static final EnumArmorMaterial IRON
public static final EnumArmorMaterial GOLD
public static final EnumArmorMaterial DIAMOND
| Field Detail |
|---|
public Item customCraftingMaterial
| Method Detail |
|---|
public static EnumArmorMaterial[] values()
for (EnumArmorMaterial c : EnumArmorMaterial.values()) System.out.println(c);
public static EnumArmorMaterial valueOf(String name)
name - the name of the enum constant to be returned.
IllegalArgumentException - if this enum type has no constant
with the specified name
NullPointerException - if the argument is nullpublic int getDurability(int par1)
public int getDamageReductionAmount(int par1)
public int getEnchantability()
public int getArmorCraftingMaterial()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||