public static enum EnchantmentProtection.TYPE extends Enum<EnchantmentProtection.TYPE>
| Enum Constant and Description |
|---|
ALL |
EXPLOSION |
FALL |
FIRE |
PROJECTILE |
| Modifier and Type | Method and Description |
|---|---|
static EnchantmentProtection.TYPE |
valueOf(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
public static EnchantmentProtection.TYPE[] values()
for (EnchantmentProtection.TYPE c : EnchantmentProtection.TYPE.values()) System.out.println(c);
public static EnchantmentProtection.TYPE 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 nullCopyright © 2020. All rights reserved.