public enum HorseArmorType extends java.lang.Enum<HorseArmorType>
Modifier and Type | Method and Description |
---|---|
static HorseArmorType |
getByItem(Item itemIn) |
static HorseArmorType |
getByItemStack(ItemStack stack) |
static HorseArmorType |
getByOrdinal(int ordinal) |
java.lang.String |
getHash() |
int |
getOrdinal() |
int |
getProtection() |
java.lang.String |
getTextureName() |
static boolean |
isHorseArmor(Item itemIn) |
static HorseArmorType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static HorseArmorType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final HorseArmorType NONE
public static final HorseArmorType IRON
public static final HorseArmorType GOLD
public static final HorseArmorType DIAMOND
public static HorseArmorType[] values()
for (HorseArmorType c : HorseArmorType.values()) System.out.println(c);
public static HorseArmorType 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 getOrdinal()
public java.lang.String getHash()
public int getProtection()
@Nullable public java.lang.String getTextureName()
public static HorseArmorType getByOrdinal(int ordinal)
public static HorseArmorType getByItemStack(@Nullable ItemStack stack)
public static HorseArmorType getByItem(@Nullable Item itemIn)
public static boolean isHorseArmor(@Nullable Item itemIn)