public enum EnvType extends Enum<EnvType>
A type of environment is a jar file in a Minecraft version's json file's download
subsection, including the client.jar and the server.jar.
Environment,
EnvironmentInterface| Enum Constant and Description |
|---|
CLIENT
Represents the client environment type, in which the
client.jar for a
Minecraft version is the main game jar. |
SERVER
Represents the server environment type, in which the
server.jar for a
Minecraft version is the main game jar. |
| Modifier and Type | Method and Description |
|---|---|
static EnvType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static EnvType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final EnvType CLIENT
client.jar for a
Minecraft version is the main game jar.
A client environment type has all client logic (client rendering and integrated server logic), the data generator logic, and dedicated server logic. It encompasses everything that is available on the server environment type.
public static final EnvType SERVER
server.jar for a
Minecraft version is the main game jar.
A server environment type has the dedicated server lgoic and data generator logic, which are all included in the client environment type. However, the server environment type has its libraries embedded compared to the client.
public static EnvType[] values()
for (EnvType c : EnvType.values()) System.out.println(c);
public static EnvType 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