ProcessManager class
Manages Minecraft processes including starting, monitoring, and terminating them.
Constructors
- ProcessManager.new()
-
Factory constructor that returns the singleton instance.
factory
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
-
getAllProcesses(
) → List< MinecraftProcessInfo> - Gets a list of all running Minecraft processes.
-
getProcessesByUser(
String uuid) → List< MinecraftProcessInfo> - Gets a list of processes for a specific user.
-
isProcessRunning(
int pid) → bool - Checks if a process with the specified ID is running.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
startProcess(
{required String javaExe, required List< String> javaArgs, required String workingDirectory, required Map<String, String> environment, required String versionId, MinecraftAuth? auth, JavaStdoutCallback? onStdout, JavaStderrCallback? onStderr, JavaExitCallback? onExit}) → Future<MinecraftProcessInfo> - Starts a new Minecraft process.
-
terminateAllProcesses(
) → void - Terminates all running Minecraft processes.
-
terminateProcess(
int pid) → bool - Terminates a running Minecraft process.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited