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

GameAnimatorBuilder

open class GameAnimatorBuilder

Builder for GameAnimator.

See Also
GameAnimatorcc.hawkbot.regnum.client.core.discord.GameAnimator.Game

Constructors

<init>

GameAnimatorBuilder()

Builder for GameAnimator.

Functions

addGames

open fun addGames(vararg games: Game!): GameAnimatorBuilder
open fun addGames(games: MutableCollection<Game!>!): GameAnimatorBuilder

Adds all specified cc.hawkbot.regnum.client.core.discord.GameAnimator.Games.

build

open fun build(): GameAnimator

Builds the GameAnimator

getApplier

open fun getApplier(): BiConsumer<Game!, Function<String!, String!>!>!

Returns the currently set function with applies the games.

getGames

open fun getGames(): MutableList<Game!>

Returns a list containing all cc.hawkbot.regnum.client.core.discord.GameAnimator.Games.

getInitialDelay

open fun getInitialDelay(): Long

Returns the amount of time till the first animation.

getInterval

open fun getInterval(): Long

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

getScheduler

open fun getScheduler(): ScheduledExecutorService

Returns the currently selected scheduler.

getTimeUnit

open fun getTimeUnit(): TimeUnit

Returns the TimeUnit for the interval and the initial delay.

getTransform

open fun getTransform(): Function<String!, String!>

Returns the function that transfroms every game before applying it

setApplier

open fun setApplier(applier: BiConsumer<Game!, Function<String!, String!>!>!): GameAnimatorBuilder

Sets the function that is use to apply the games

setGames

open fun setGames(games: MutableList<Game!>): GameAnimatorBuilder

Sets the cc.hawkbot.regnum.client.core.discord.GameAnimator.Games that will be animated.

setInitialDelay

open fun setInitialDelay(initialDelay: Long): GameAnimatorBuilder

Sets the amount of time till the first animation

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

Sets the animation interval and its unit.

setInterval

open fun setInterval(interval: Long): GameAnimatorBuilder

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

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

Sets the animation interval and its unit.

setJDA

open fun setJDA(jda: JDA!): GameAnimatorBuilder

Uses an JDA instance for the Applier.

setScheduler

open fun setScheduler(scheduler: ScheduledExecutorService): GameAnimatorBuilder

Sets the scheduler used to animate the games.

setShardManager

open fun setShardManager(shardManager: ShardManager!): GameAnimatorBuilder

Uses an ShardManager instance for the Applier.

setTimeUnit

open fun setTimeUnit(unit: TimeUnit): GameAnimatorBuilder

Sets the TimeUnit for the interval and the initial delay.

setTransform

open fun setTransform(transform: Function<String!, String!>!): GameAnimatorBuilder

Sets the function that transfroms every game before applying it