Interface PlayerManager

All Superinterfaces:
GlobalManager

public interface PlayerManager extends GlobalManager
Player manager
  • Method Summary

    Modifier and Type
    Method
    Description
    default boolean
    animate(@NotNull org.bukkit.entity.Player player, @NotNull String model, @NotNull String animation)
    Play's animation to this player
    boolean
    animate(@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.
    @NotNull @Unmodifiable Set<String>
    Gets all key of renderer
    @Nullable ModelRenderer
    limb(@NotNull String name)
    Gets renderer for player animation by name.
    @NotNull @Unmodifiable Collection<ModelRenderer>
    Gets all renderers for player animation.
    player(@NotNull UUID uuid)
    Gets player channel handler
    player(@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

      @Nullable @Nullable PlayerChannelHandler player(@NotNull @NotNull UUID uuid)
      Gets player channel handler
      Parameters:
      uuid - player's uuid
      Returns:
      channel handler or null
    • player

      @NotNull @NotNull PlayerChannelHandler player(@NotNull @NotNull org.bukkit.entity.Player 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 - player
      model - model name
      animation - 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 - player
      model - model name
      animation - animation name
      modifier - modifier
      Returns:
      whether to success
    • limbs

      @NotNull @NotNull @Unmodifiable Collection<ModelRenderer> limbs()
      Gets all renderers for player animation.
      Returns:
      renderers
    • limb

      @Nullable @Nullable ModelRenderer limb(@NotNull @NotNull String name)
      Gets renderer for player animation by name.
      Parameters:
      name - renderer's name
      Returns:
      renderer or null
    • keys

      @NotNull @NotNull @Unmodifiable Set<String> keys()
      Gets all key of renderer
      Returns:
      keys