Enum Constant and Description |
---|
BOOTS
原版靴子
|
CHESTPLATE
原版胸甲
|
HELMET
原版头盔
|
LEGGINGS
原版护腿
|
Modifier and Type | Method and Description |
---|---|
int |
getSlot() |
static ArmorType |
matchType(org.bukkit.inventory.ItemStack itemStack)
尝试为指定的ItemStack匹配ArmorType
|
static ArmorType |
valueOf(java.lang.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 HELMET
public static final ArmorType CHESTPLATE
public static final ArmorType LEGGINGS
public static final ArmorType BOOTS
public static ArmorType[] values()
for (ArmorType c : ArmorType.values()) System.out.println(c);
public static ArmorType 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 ArmorType matchType(org.bukkit.inventory.ItemStack itemStack)
itemStack
- 要尝试匹配ArmorType的ItemStackpublic int getSlot()