animate
open fun animate(@NotNull player: @NotNull PlatformPlayer, @NotNull model: @NotNull String, @NotNull animation: @NotNull String): Boolean
Plays an animation on a player.
Return
true if the animation started successfully
Since
1.15.2
Parameters
player
the target player
model
the name of the limb model
animation
the name of the animation
open fun animate(@NotNull player: @NotNull PlatformPlayer, @NotNull model: @NotNull String, @NotNull animation: @NotNull String, @NotNull modifier: @NotNull AnimationModifier): Boolean
Plays an animation on a player with a specific modifier.
Return
true if the animation started successfully
Since
1.15.2
Parameters
player
the target player
model
the name of the limb model
animation
the name of the animation
modifier
the animation modifier
open fun animate(@NotNull player: @NotNull PlatformPlayer, @NotNull model: @NotNull String, @NotNull animation: @NotNull String, @NotNull modifier: @NotNull AnimationModifier, @NotNull consumer: @NotNull Consumer<EntityTracker>): Boolean
Plays an animation on a player with a modifier and a configuration consumer.
Return
true if the animation started successfully
Since
1.15.2
Parameters
player
the target player
model
the name of the limb model
animation
the name of the animation
modifier
the animation modifier
consumer
a consumer to configure the created tracker