BetterModel

A provider class for BetterModel plugin instance.

Properties

Link copied to clipboard
Check a running platform is Folia.
Link copied to clipboard
Check a running platform is Paper.
Link copied to clipboard
Check a running platform is Purpur.

Functions

Link copied to clipboard
@NotNull
open fun config(): @NotNull BetterModelConfig
Gets config manager
Link copied to clipboard
@NotNull
open fun inst(): @NotNull BetterModelPlugin
Link copied to clipboard
@NotNull
open fun limb(@NotNull name: @NotNull String): @NotNull Optional<ModelRenderer>
Gets player animation renderer by name
Link copied to clipboard
@NotNull
@Unmodifiable
open fun limbKeys(): @NotNull @Unmodifiable Set<String>
Gets all keys of limb
Link copied to clipboard
@Nullable
open fun limbOrNull(@NotNull name: @NotNull String): @Nullable ModelRenderer
Gets player animation renderer or null by name
Link copied to clipboard
@NotNull
@Unmodifiable
open fun limbs(): @NotNull @Unmodifiable Collection<ModelRenderer>
Gets all limbs
Link copied to clipboard
@NotNull
open fun model(@NotNull name: @NotNull String): @NotNull Optional<ModelRenderer>
Gets model renderer by name
Link copied to clipboard
@NotNull
@Unmodifiable
open fun modelKeys(): @NotNull @Unmodifiable Set<String>
Gets all keys of model
Link copied to clipboard
@Nullable
open fun modelOrNull(@NotNull name: @NotNull String): @Nullable ModelRenderer
Gets model renderer or null by name
Link copied to clipboard
@NotNull
@Unmodifiable
open fun models(): @NotNull @Unmodifiable Collection<ModelRenderer>
Gets all models
Link copied to clipboard
@NotNull
open fun player(@NotNull uuid: @NotNull UUID): @NotNull Optional<PlayerChannelHandler>
Gets player channel by uuid.
Link copied to clipboard
@NotNull
open fun plugin(): @NotNull BetterModelPlugin
Gets plugin instance of BetterModel.
Link copied to clipboard
@ApiStatus.Internal
open fun register(@NotNull instance: @NotNull BetterModelPlugin)
Sets plugin instance of BetterModel.
Link copied to clipboard
@NotNull
open fun registry(@NotNull uuid: @NotNull UUID): @NotNull Optional<EntityTrackerRegistry>
Gets entity registry by entity's uuid.
@NotNull
open fun registry(@NotNull entity: @NotNull Entity): @NotNull Optional<EntityTrackerRegistry>
Gets entity registry by entity.
Link copied to clipboard
@Nullable
open fun registryOrNull(@NotNull uuid: @NotNull UUID): @Nullable EntityTrackerRegistry
Gets entity registry by entity's uuid.
@Nullable
open fun registryOrNull(@NotNull entity: @NotNull Entity): @Nullable EntityTrackerRegistry
Gets entity registry by entity.