Package kr.toxicity.model.api.manager
Interface PlayerManager
- All Superinterfaces:
GlobalManager
Player manager
-
Method Summary
Modifier and TypeMethodDescriptiondefault booleanPlay's animation to this playerbooleananimate(@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.keys()Gets all key of renderer@Nullable ModelRendererGets renderer for player animation by name.@NotNull @Unmodifiable Collection<ModelRenderer> limbs()Gets all renderers for player animation.@Nullable PlayerChannelHandlerGets player channel handler@NotNull PlayerChannelHandlerplayer(@NotNull org.bukkit.entity.Player player) Get or creates channel handler Do not use this with fake player, instead use PlayerManager#player(UUID)Methods inherited from interface kr.toxicity.model.api.manager.GlobalManager
reload
-
Method Details
-
player
Gets player channel handler- Parameters:
uuid- player's uuid- Returns:
- channel handler or null
-
player
Get or creates channel handler Do not use this with fake player, instead use PlayerManager#player(UUID)- Parameters:
player- player- Returns:
- channel handler
-
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
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
-
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
-
keys
Gets all key of renderer- Returns:
- keys
-