ITickNotifier

Interface to notify handlers about game ticks, or "forced ticks" (when the game is paused, but update is needed).

Functions

Link copied to clipboard
abstract fun addHandler(@NotNull handler: @NotNull ITickHandler)
Subscribes to a game tick event.
Link copied to clipboard
@NotNull
open fun getInstance(): @NotNull ITickNotifier
Returns the implementation of ITickNotifier.
Link copied to clipboard
open fun plusAssign(@NotNull handler: @NotNull ITickHandler)
Subscribes to a game tick event, but with Kotlin syntax.
Link copied to clipboard
abstract fun tick(@NotNull world: @NotNull World)
Sends a tick to every subscribed game tick handler.