Class AnimationProcessor

java.lang.Object
dev.kosmx.playerAnim.core.impl.AnimationProcessor

public class AnimationProcessor extends Object
Tool to easily play animation to the player.
  • Constructor Details

    • AnimationProcessor

      public AnimationProcessor(@Nullable @Nullable IAnimation animation)
  • Method Details

    • tick

      @Internal public void tick()
    • isActive

      public boolean isActive()
    • get3DTransform

      @Deprecated(forRemoval=true) public Vec3f get3DTransform(String modelKey, TransformType type, Vec3f value0)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • get3DTransform

      public Vec3f get3DTransform(PartKey partKey, TransformType type, Vec3f value0)
    • setTickDelta

      @Internal public void setTickDelta(float tickDelta)
    • getAnimation

      @Experimental @Nullable public @Nullable IAnimation getAnimation()
    • isFirstPersonAnimationDisabled

      public boolean isFirstPersonAnimationDisabled()
    • getFirstPersonMode

      @NotNull public @NotNull FirstPersonMode getFirstPersonMode()
    • getFirstPersonConfiguration

      @NotNull public @NotNull FirstPersonConfiguration getFirstPersonConfiguration()
    • getBend

      @NotNull public @NotNull Pair<Float,Float> getBend(PartKey partKey)
    • getPriority

      public int getPriority()
      Returns:
      Priority of the currently active animation, returns 0 if there are none.