Events/Launch/minified-launch
GameProcessStartedEvent
Gets fired right after the Minecraft process was spawned, so a launcher can keep a handle to it (to stop it, for example)
Fields
processProcessThe running game process
launchConfigurationLaunchConfigurationThe launch configuration that was used to launch the game
Listening
Subscribe on the EventBus the event is posted to, see Events for which bus that is.
eventBus.subscribe(GameProcessStartedEvent.class, event -> {
Process process = event.process();
LaunchConfiguration launchConfiguration = event.launchConfiguration();
});eventBus.subscribe(GameProcessStartedEvent::class.java) { event ->
val process = event.process()
val launchConfiguration = event.launchConfiguration()
}Posted by
API reference: com.dervarex.minified.launch.events.launch.GameProcessStartedEvent