public enum Enchantment extends Enum<Enchantment>
| Enum Constant and Description |
|---|
DEPTH_STRIDER |
DIG_SPEED |
SOUL_SPEED |
THORNS |
UNBREAKING |
| Modifier and Type | Method and Description |
|---|---|
String |
getId() |
String |
toString() |
static Enchantment |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Enchantment[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Enchantment DIG_SPEED
public static final Enchantment DEPTH_STRIDER
public static final Enchantment THORNS
public static final Enchantment UNBREAKING
public static final Enchantment SOUL_SPEED
public static Enchantment[] values()
for (Enchantment c : Enchantment.values()) System.out.println(c);
public static Enchantment 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 String getId()
public String toString()
toString in class Enum<Enchantment>