public static enum ProtectionEnchantment.Type extends java.lang.Enum<ProtectionEnchantment.Type>
Enum Constant and Description |
---|
ALL |
EXPLOSION |
FALL |
FIRE |
PROJECTILE |
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
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()