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

setInterval

@NotNull open fun setInterval(interval: Long): @NotNull GameAnimatorBuilder

Sets the interval in which the games are going to be changed.

Parameters

interval - Long: the interval as a long

Exceptions

IllegalArgumentException - when the interval is not grater than 0

Return
GameAnimatorBuilder: the GameAnimatorBuilder

@NotNull open fun setInterval(interval: Long, @Nullable unit: @Nullable TimeUnit?): @NotNull GameAnimatorBuilder

Sets the animation interval and its unit.

Parameters

interval - Long: the interval

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

Exceptions

IllegalArgumentException - when the interval is not grater than 0

Return
GameAnimatorBuilder: the GameAnimatorBuilder