recordSource
public record GameOutputEvent(String line, Stream stream)
    implements Event

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

Implemented interfaces
Event
Event
When it fires and how to listen to it

Record components

lineString

The line, without the line break

Accessor: line()
streamStream

Which output stream the line came from

Accessor: stream()

Constructors

public GameOutputEvent(String line, Stream stream)
Parameters
lineString
streamStream

Nested types