EnvironmentManager class
Manages environment variables and paths for Minecraft game execution.
Provides utilities for configuring the environment, resolving Java paths, and normalizing file paths across different operating systems.
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
configureEnvironment(
{required String nativesPath, Map< String, String> ? environment}) → Map<String, String> - Configures environment variables to include native library directories.
-
getJavaExecutablePath(
String javaDir) → String - Returns the path to the Java executable based on the provided Java directory.
-
normalizePath(
String path) → String - Normalizes a file path according to the platform conventions.