static enum Weapon.Material extends Enum<Weapon.Material>
Modifier and Type | Method and Description |
---|---|
static Weapon.Material |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Weapon.Material[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Weapon.Material Steel
public static final Weapon.Material Silver
public static Weapon.Material[] values()
for (Weapon.Material c : Weapon.Material.values()) System.out.println(c);
public static Weapon.Material 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 null