Enum Constant and Description |
---|
BFG |
GAUNTLET |
GRENADE_LAUNCHER |
LIGHTING_GUN |
MACHINEGUN |
PLASMA_PISTOL |
RAILGUN |
ROCKET_LAUNCHER |
SHOTGUN |
Modifier and Type | Method and Description |
---|---|
static weapon |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static weapon[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final weapon GAUNTLET
public static final weapon MACHINEGUN
public static final weapon SHOTGUN
public static final weapon GRENADE_LAUNCHER
public static final weapon ROCKET_LAUNCHER
public static final weapon LIGHTING_GUN
public static final weapon RAILGUN
public static final weapon PLASMA_PISTOL
public static final weapon BFG
public static weapon[] values()
for (weapon c : weapon.values()) System.out.println(c);
public static weapon 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 null