Events/Launch/minified-launch

GameOutputEvent

Gets fired for every line the game prints, only when captureGameOutput is enabled in the launch configuration

Fields

lineString

The line, without the line break

Accessor: line()

Which output stream the line came from

Accessor: stream()

Types

GameOutputEvent.Stream

API
STDOUT
STDERR

Listening

Subscribe on the EventBus the event is posted to, see Events for which bus that is.

eventBus.subscribe(GameOutputEvent.class, event -> {
    String line = event.line();
    Stream stream = event.stream();
});

Posted by

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