ModelManager

interface ModelManager

Manages all loaded models and provides access to them.

This manager is the primary entry point for retrieving ModelRenderer instances, which are used to create and control model trackers.

Since

1.15.2

Functions

Link copied to clipboard
open fun animate(@NotNull player: @NotNull PlatformPlayer, @NotNull model: @NotNull String, @NotNull animation: @NotNull String): Boolean
Plays an animation on a player.
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.
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.
Link copied to clipboard
@Nullable
abstract fun limb(@NotNull name: @NotNull String): @Nullable ModelRenderer
Retrieves a player limb renderer by its name.
Link copied to clipboard
@NotNull
@Unmodifiable
abstract fun limbKeys(): @NotNull @Unmodifiable Set<String>
Returns a set of all loaded player limb model names.
Link copied to clipboard
@NotNull
@Unmodifiable
abstract fun limbs(): @NotNull @Unmodifiable Collection<ModelRenderer>
Returns a collection of all renderers designated for player limb animations.
Link copied to clipboard
@Nullable
abstract fun model(@NotNull name: @NotNull String): @Nullable ModelRenderer
Retrieves a model renderer by its name.
Link copied to clipboard
@NotNull
@Unmodifiable
abstract fun modelKeys(): @NotNull @Unmodifiable Set<String>
Returns a set of all loaded model names.
Link copied to clipboard
@NotNull
@Unmodifiable
abstract fun models(): @NotNull @Unmodifiable Collection<ModelRenderer>
Returns a collection of all loaded model renderers.
Link copied to clipboard
@Nullable
open fun renderer(@NotNull name: @NotNull String): @Nullable ModelRenderer