Package kr.toxicity.model.api.manager
Interface ModelManager
public interface ModelManager
Model Manager
-
Method Summary
Modifier and TypeMethodDescriptiondefault booleanPlay's animation to this playerdefault booleananimate(@NotNull org.bukkit.entity.Player player, @NotNull String model, @NotNull String animation, @NotNull AnimationModifier modifier) Play's animation to this player with a specific loop type.default booleananimate(@NotNull org.bukkit.entity.Player player, @NotNull String model, @NotNull String animation, @NotNull AnimationModifier modifier, @NotNull Consumer<EntityTracker> consumer) Play's animation to this player with a specific loop type.@Nullable ModelRendererGets renderer for player animation by name.limbKeys()Gets all key of renderer@NotNull @Unmodifiable Collection<ModelRenderer> limbs()Gets all renderers for player animation.@Nullable ModelRendererGets renderer by nameGets all key of renderer@NotNull @Unmodifiable Collection<ModelRenderer> models()Gets all renderersdefault @Nullable ModelRendererDeprecated.Use ModelManager#model instead.
-
Method Details
-
model
Gets renderer by name- Parameters:
name- name- Returns:
- renderer or null
-
renderer
Deprecated.Use ModelManager#model instead.- Parameters:
name- name- Returns:
- renderer or null
-
models
Gets all renderers- Returns:
- all renderers
-
modelKeys
Gets all key of renderer- Returns:
- keys
-
limbs
Gets all renderers for player animation.- Returns:
- renderers
-
limb
Gets renderer for player animation by name.- Parameters:
name- renderer's name- Returns:
- renderer or null
-
limbKeys
Gets all key of renderer- Returns:
- keys
-
animate
default boolean animate(@NotNull @NotNull org.bukkit.entity.Player player, @NotNull @NotNull String model, @NotNull @NotNull String animation) Play's animation to this player- Parameters:
player- playermodel- model nameanimation- animation name- Returns:
- whether to success
-
animate
default boolean animate(@NotNull @NotNull org.bukkit.entity.Player player, @NotNull @NotNull String model, @NotNull @NotNull String animation, @NotNull @NotNull AnimationModifier modifier) Play's animation to this player with a specific loop type.- Parameters:
player- playermodel- model nameanimation- animation namemodifier- modifier- Returns:
- whether to success
-
animate
default boolean animate(@NotNull @NotNull org.bukkit.entity.Player player, @NotNull @NotNull String model, @NotNull @NotNull String animation, @NotNull @NotNull AnimationModifier modifier, @NotNull @NotNull Consumer<EntityTracker> consumer) Play's animation to this player with a specific loop type.- Parameters:
player- playermodel- model nameanimation- animation namemodifier- modifierconsumer- consumer- Returns:
- whether to success
-