to Actionbar Animation
abstract fun toActionbarAnimation(animation: Animation, player: Player, withPlaceholders: Boolean): SendableAnimation
Content copied to clipboard
Creates a SendableAnimation that sends Actionbar messages to the player.
If withPlaceholders
is true, placeholders will be replaced.
Return
The SendableAnimation instance associated with the animation.
Since
2.0.0
Parameters
animation
The animation to be used.
player
The player the SendableAnimation is associated with.
with Placeholders
Whether or not placeholders should be replaced.
abstract fun toActionbarAnimation(parts: List<AnimationPart<*>>, player: Player, withPlaceholders: Boolean): SendableAnimation
Content copied to clipboard
Creates a SendableAnimation that sends Actionbar messages to the player.
If withPlaceholders
is true, placeholders will be replaced.
Return
The SendableAnimation instance associated with the animation.
Since
2.0.0
Parameters
parts
The parts of the animation the SendableAnimation will be made off of.
player
The player the SendableAnimation is associated with.
with Placeholders
Whether or not placeholders should be replaced.