PlayerManager

Player manager

Functions

Link copied to clipboard
open fun animate(@NotNull player: @NotNull Player, @NotNull model: @NotNull String, @NotNull animation: @NotNull String): Boolean
Play's animation to this player
abstract fun animate(@NotNull player: @NotNull Player, @NotNull model: @NotNull String, @NotNull animation: @NotNull String, @NotNull modifier: @NotNull AnimationModifier): Boolean
Play's animation to this player with a specific loop type.
Link copied to clipboard
@NotNull
@Unmodifiable
abstract fun keys(): @NotNull @Unmodifiable Set<String>
Gets all key of renderer
Link copied to clipboard
@Nullable
abstract fun limb(@NotNull name: @NotNull String): @Nullable ModelRenderer
Gets renderer for player animation by name.
Link copied to clipboard
@NotNull
@Unmodifiable
abstract fun limbs(): @NotNull @Unmodifiable Collection<ModelRenderer>
Gets all renderers for player animation.
Link copied to clipboard
@Nullable
abstract fun player(@NotNull uuid: @NotNull UUID): @Nullable PlayerChannelHandler
Gets player channel handler
@NotNull
abstract fun player(@NotNull player: @NotNull Player): @NotNull PlayerChannelHandler
Get or creates channel handler Do not use this with fake player, instead use PlayerManager#player(UUID)
Link copied to clipboard
abstract fun reload(@NotNull info: @NotNull ReloadInfo)
Executes reload