toScoreboardTitleAnimation

abstract fun toScoreboardTitleAnimation(animation: Animation, player: Player, withPlaceholders: Boolean): SendableAnimation(source)

Creates a SendableAnimation that sets the title for the player's scoreboard.

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.

withPlaceholders

Whether or not placeholders should be replaced.


abstract fun toScoreboardTitleAnimation(parts: List<AnimationPart<*>>, player: Player, withPlaceholders: Boolean): SendableAnimation(source)

Creates a SendableAnimation that sets the title for the player's scoreboard.

If withPlaceholders is true, placeholders will be replaced.

Return

The List of AnimationParts associated with the given player.

Since

2.0.0

Parameters

parts

The animation parts to be used.

player

The player the List of AnimationParts is associated with.

withPlaceholders

Whether or not placeholders should be replaced.