public enum HorseArmorType extends java.lang.Enum<HorseArmorType> implements IExtensibleEnum
| Modifier and Type | Method and Description |
|---|---|
static HorseArmorType |
create(java.lang.String name,
int strength,
java.lang.String texture,
java.lang.String hash,
Item item) |
static HorseArmorType |
getByItem(Item itemIn)
Deprecated.
|
static HorseArmorType |
getByItemStack(ItemStack stack) |
static HorseArmorType |
getByOrdinal(int ordinal)
Deprecated.
|
java.lang.String |
getHash() |
int |
getOrdinal() |
int |
getProtection() |
java.lang.String |
getTextureName() |
static boolean |
isHorseArmor(Item itemIn)
Deprecated.
|
static boolean |
isHorseArmor(ItemStack stack) |
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 static HorseArmorType create(java.lang.String name, int strength, java.lang.String texture, java.lang.String hash, Item item)
public int getOrdinal()
public java.lang.String getHash()
public int getProtection()
@Nullable public java.lang.String getTextureName()
@Deprecated public static HorseArmorType getByOrdinal(int ordinal)
public static HorseArmorType getByItemStack(ItemStack stack)
@Deprecated public static HorseArmorType getByItem(Item itemIn)
@Deprecated public static boolean isHorseArmor(Item itemIn)
public static boolean isHorseArmor(ItemStack stack)