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

processProcess

The running game process

Accessor: process()
launchConfigurationLaunchConfiguration

The launch configuration that was used to launch the game

Accessor: launchConfiguration()

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();
});

Posted by

API reference: com.dervarex.minified.launch.events.launch.GameProcessStartedEvent