toScoreboardValueAnimation

abstract fun toScoreboardValueAnimation(animation: Animation, player: Player, index: Int, withPlaceholders: Boolean): SendableAnimation

Creates a SendableAnimation that sets the text value for the player's scoreboard at the given index.

If withPlaceholders is true, placeholders will be replaced.

Return

The SendableAnimation instance associated with the given player.

Since

2.0.0

Parameters

animation

The animation to be used.

player

The player the SendableAnimation is associated with.

index

The index the text value should be set to.

withPlaceholders

Whether or not placeholders should be replaced.


abstract fun toScoreboardValueAnimation(parts: List<AnimationPart<*>>, player: Player, index: Int, withPlaceholders: Boolean): SendableAnimation

Creates a SendableAnimation that sets the text value for the player's scoreboard at the given index.

If withPlaceholders is true, placeholders will be replaced.

Return

The SendableAnimation instance associated with the given player.

Since

2.0.0

Parameters

parts

The animation to be used.

player

The player the SendableAnimation is associated with.

index

The index the text value should be set to.

withPlaceholders

Whether or not placeholders should be replaced.