TimeScript

Script with time

Parameters

time

time

script

source script

Constructors

Link copied to clipboard
constructor()

Companion properties

Link copied to clipboard
Empty script

Companion functions

Link copied to clipboard
@NotNull
open fun of(@NotNull scriptList: @NotNull List<AnimationScript>): @NotNull AnimationScript
Sums a script list to one
@NotNull
open fun of(@NotNull source: @NotNull Consumer<Tracker>): @NotNull AnimationScript
@NotNull
open fun of(isSync: Boolean, @NotNull source: @NotNull Consumer<Tracker>): @NotNull AnimationScript
Creates script

Functions

Link copied to clipboard
abstract fun accept(p: T)
open fun accept(@NotNull tracker: @NotNull Tracker)
Link copied to clipboard
open fun andThen(after: Consumer<in T>): Consumer<T>
Link copied to clipboard
abstract fun compareTo(p: T): Int
open fun compareTo(@NotNull o: @NotNull Timed): Int
Link copied to clipboard
abstract fun equals(p: Any): Boolean
Link copied to clipboard
abstract fun hashCode(): Int
Link copied to clipboard
open fun isSync(): Boolean
Checks this script should be called in tick thread
Link copied to clipboard
open fun tickTime(): Float
Returns this time in seconds, rounded to the nearest 50 ms Minecraft tick.
Link copied to clipboard
abstract fun time(): Float
Gets time
@NotNull
open fun time(newTime: Float): @NotNull TimeScript
Creates a timed script
Link copied to clipboard
abstract fun toString(): String