Enum Constant and Description |
---|
BOOTS |
CHESTPLATE |
HELMET |
LEGGINGS |
Modifier and Type | Method and Description |
---|---|
static ArmorType |
getArmorType(org.bukkit.inventory.ItemStack item) |
static ArmorType |
getArmorType(org.bukkit.Material material) |
org.bukkit.Material |
getChainmailMaterial() |
java.util.List<CustomShapedRecipe> |
getCustomShapedRecipe(org.bukkit.Material craftingMaterial) |
java.util.List<CustomShapedRecipe> |
getCustomShapedRecipe(RecipeIngredient craftingIngredient) |
org.bukkit.Material |
getDiamondMaterial() |
org.bukkit.inventory.EquipmentSlot |
getEquipmentSlot() |
org.bukkit.Material |
getGoldMaterial() |
org.bukkit.Material |
getIronMaterial() |
org.bukkit.Material |
getLeatherMaterial() |
int |
getSlot() |
java.lang.String |
toIngameLeatherString() |
java.lang.String |
toIngameString() |
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 java.lang.String toIngameString()
public java.lang.String toIngameLeatherString()
public org.bukkit.Material getLeatherMaterial()
public org.bukkit.Material getChainmailMaterial()
public org.bukkit.Material getGoldMaterial()
public org.bukkit.Material getIronMaterial()
public org.bukkit.Material getDiamondMaterial()
public org.bukkit.inventory.EquipmentSlot getEquipmentSlot()
public java.util.List<CustomShapedRecipe> getCustomShapedRecipe(org.bukkit.Material craftingMaterial)
public java.util.List<CustomShapedRecipe> getCustomShapedRecipe(RecipeIngredient craftingIngredient)
public static ArmorType getArmorType(org.bukkit.inventory.ItemStack item)
public static ArmorType getArmorType(org.bukkit.Material material)
public int getSlot()