public enum ArmorType extends Enum<ArmorType>
Modifier and Type | Method and Description |
---|---|
static ArmorType |
findById(int id)
Find an armour type by the item id
|
static ArmorType |
findByType(String type)
Find an armour type by the item string
|
int |
getArmorPoints() |
int |
getId()
Get the Minecraft ID for the Armour Type
|
String |
getType() |
static boolean |
isArmor(int id)
Check if an item id is armour
|
static boolean |
isArmor(String type)
Check if an item id is armour
|
static ArmorType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ArmorType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ArmorType LEATHER_HELMET
public static final ArmorType LEATHER_CHESTPLATE
public static final ArmorType LEATHER_LEGGINGS
public static final ArmorType LEATHER_BOOTS
public static final ArmorType CHAINMAIL_HELMET
public static final ArmorType CHAINMAIL_CHESTPLATE
public static final ArmorType CHAINMAIL_LEGGINGS
public static final ArmorType CHAINMAIL_BOOTS
public static final ArmorType IRON_HELMET
public static final ArmorType IRON_CHESTPLATE
public static final ArmorType IRON_LEGGINGS
public static final ArmorType IRON_BOOTS
public static final ArmorType DIAMOND_HELMET
public static final ArmorType DIAMOND_CHESTPLATE
public static final ArmorType DIAMOND_LEGGINGS
public static final ArmorType DIAMOND_BOOTS
public static final ArmorType GOLD_HELMET
public static final ArmorType GOLD_CHESTPLATE
public static final ArmorType GOLD_LEGGINGS
public static final ArmorType GOLD_BOOTS
public static final ArmorType NONE
public static ArmorType[] values()
for (ArmorType c : ArmorType.values()) System.out.println(c);
public static ArmorType valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic int getArmorPoints()
public String getType()
public static ArmorType findById(int id)
id
- ID of the itempublic static ArmorType findByType(String type)
type
- String name for the itempublic static boolean isArmor(int id)
id
- The item IDpublic static boolean isArmor(String type)
type
- The item material namepublic int getId()
Copyright © 2016–2021. All rights reserved.