public enum ArmorConstants extends Enum<ArmorConstants>
Modifier and Type | Method and Description |
---|---|
int |
getDefense() |
static int |
getDefense(org.bukkit.inventory.ItemStack[] armor)
Calculate total defense of a suit of armor.
|
int |
getToughness() |
static int |
getToughness(org.bukkit.inventory.ItemStack[] armor)
Calculate total toughness of a suit of armor.
|
static ArmorConstants |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ArmorConstants[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ArmorConstants LEATHER_HELMET
public static final ArmorConstants LEATHER_CHESTPLATE
public static final ArmorConstants LEATHER_LEGGINGS
public static final ArmorConstants LEATHER_BOOTS
public static final ArmorConstants GOLD_HELMET
public static final ArmorConstants GOLD_CHESTPLATE
public static final ArmorConstants GOLD_LEGGINGS
public static final ArmorConstants GOLD_BOOTS
public static final ArmorConstants CHAINMAIL_HELMET
public static final ArmorConstants CHAINMAIL_CHESTPLATE
public static final ArmorConstants CHAINMAIL_LEGGINGS
public static final ArmorConstants CHAINMAIL_BOOTS
public static final ArmorConstants IRON_HELMET
public static final ArmorConstants IRON_CHESTPLATE
public static final ArmorConstants IRON_LEGGINGS
public static final ArmorConstants IRON_BOOTS
public static final ArmorConstants DIAMOND_HELMET
public static final ArmorConstants DIAMOND_CHESTPLATE
public static final ArmorConstants DIAMOND_LEGGINGS
public static final ArmorConstants DIAMOND_BOOTS
public static ArmorConstants[] values()
for (ArmorConstants c : ArmorConstants.values()) System.out.println(c);
public static ArmorConstants 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 static int getDefense(org.bukkit.inventory.ItemStack[] armor)
armor
- all armor items wornpublic static int getToughness(org.bukkit.inventory.ItemStack[] armor)
armor
- all armor items wornpublic int getDefense()
public int getToughness()
Copyright © 2021. All rights reserved.