command / me.schlaubi.regnumutils.common.builder / GameAnimatorBuilder / setInitialDelay

setInitialDelay

@NotNull open fun setInitialDelay(initialDelay: Long): @NotNull GameAnimatorBuilder

Sets the amount of time till the first animation

Parameters

initialDelay - Long: the amount of time as a long

Exceptions

IllegalArgumentException - when the initialDelay is negative

Return
GameAnimatorBuilder: the GameAnimatorBuilder

@NotNull open fun setInitialDelay(initialDelay: Long, @Nullable unit: @Nullable TimeUnit?): @NotNull GameAnimatorBuilder

Sets the animation interval and its unit.

Parameters

initialDelay - Long: the amount of time as a long

unit - TimeUnit?: the TimeUnit or null if you don't want to change it

Exceptions

IllegalArgumentException - when the initialDelay is negative

Return
GameAnimatorBuilder: the GameAnimatorBuilder