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