public static enum EnchantmentProtection.Type extends java.lang.Enum<EnchantmentProtection.Type>
Enum Constant and Description |
---|
ALL |
EXPLOSION |
FALL |
FIRE |
PROJECTILE |
Modifier and Type | Field and Description |
---|---|
private int |
levelCost |
private int |
levelCostSpan |
private int |
minEnchantability |
private java.lang.String |
typeName |
Modifier and Type | Method and Description |
---|---|
int |
getEnchantIncreasePerLevel() |
int |
getMinimalEnchantability() |
java.lang.String |
getTypeName() |
static EnchantmentProtection.Type |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static EnchantmentProtection.Type[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final EnchantmentProtection.Type ALL
public static final EnchantmentProtection.Type FIRE
public static final EnchantmentProtection.Type FALL
public static final EnchantmentProtection.Type EXPLOSION
public static final EnchantmentProtection.Type PROJECTILE
private final java.lang.String typeName
private final int minEnchantability
private final int levelCost
private final int levelCostSpan
public static EnchantmentProtection.Type[] values()
for (EnchantmentProtection.Type c : EnchantmentProtection.Type.values()) System.out.println(c);
public static EnchantmentProtection.Type 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 getTypeName()
public int getMinimalEnchantability()
public int getEnchantIncreasePerLevel()