Scratch for Java

Diese Seite ist noch nicht übersetzt. Sie wird in ihrer Originalsprache angezeigt.

ExtensionContext::dispatch()

Browser availability: desktop-only.

This API requires the desktop runtime. Browser declarations may report the limitation without performing the operation.

Calls a listener interface on the stage and every sprite of it that implements it, at the point of the tick where key events arrive. Learner exceptions thrown there stop the game like any learner exception. Game thread.

Syntax

Java

.dispatch(stage, listener, call)

Parameters

Name Data Type Description
stage Stage
listener Class<T>
call Consumer<? super T>

Return

void

dispatch()

Teilbare URL erstellen

Abschnitte auswählen