public enum Arm extends Enum<Arm>
Modifier and Type | Field and Description |
---|---|
private Text |
optionName |
Modifier and Type | Method and Description |
---|---|
Arm |
getOpposite() |
Text |
getOptionName() |
String |
toString() |
static Arm |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Arm[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
private final Text optionName
public static Arm[] values()
for (Arm c : Arm.values()) System.out.println(c);
public static Arm 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@Environment(value=CLIENT) public Arm getOpposite()
@Environment(value=CLIENT) public Text getOptionName()