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