import net.pterodactylus.reactor.Action;
import net.pterodactylus.reactor.State;
+import net.pterodactylus.reactor.output.Output;
/**
* {@link Action} that simply dumps all {@link State}s to standard output.
* {@inheritDoc}
*/
@Override
- public void execute(State currentState, State previousState) {
- System.out.println(String.format("currentState: %s, previousState: %s", currentState, previousState));
+ public void execute(Output output) {
+ System.out.println(String.format("Triggered by %s.", output.text("text/plain", -1)));
}
}