Class LimbAnimator

java.lang.Object
net.minecraft.entity.LimbAnimator

public class LimbAnimator extends Object
Mappings:
Namespace Name
named net/minecraft/entity/LimbAnimator
intermediary net/minecraft/class_8080
official bze
  • Field Details Link icon

    • lastSpeed Link icon

      private float lastSpeed
      Mappings:
      Namespace Name Mixin selector
      named lastSpeed Lnet/minecraft/entity/LimbAnimator;lastSpeed:F
      intermediary field_42109 Lnet/minecraft/class_8080;field_42109:F
      official a Lbze;a:F
    • speed Link icon

      private float speed
      The speed of the limb movement, also affects the amplitude of their swing.
      Mappings:
      Namespace Name Mixin selector
      named speed Lnet/minecraft/entity/LimbAnimator;speed:F
      intermediary field_42110 Lnet/minecraft/class_8080;field_42110:F
      official b Lbze;b:F
    • animationProgress Link icon

      private float animationProgress
      How far the limbs have progressed in swinging over time.

      This value is uncapped. It's in arbitrary units and is scaled differently by different entity models (shorter legs need to swing faster to make the entity appear to be running at the same speed).

      Mappings:
      Namespace Name Mixin selector
      named animationProgress Lnet/minecraft/entity/LimbAnimator;animationProgress:F
      intermediary field_42111 Lnet/minecraft/class_8080;field_42111:F
      official c Lbze;c:F
    • timeScale Link icon

      private float timeScale
      Like speed, affects the speed of the limb movement, but without affecting the amplitude of the limb swings. Used by baby zombies etc.
      Mappings:
      Namespace Name Mixin selector
      named timeScale Lnet/minecraft/entity/LimbAnimator;timeScale:F
      intermediary field_52449 Lnet/minecraft/class_8080;field_52449:F
      official d Lbze;d:F
  • Constructor Details Link icon

    • LimbAnimator Link icon

      public LimbAnimator()
  • Method Details Link icon

    • setSpeed Link icon

      public void setSpeed(float speed)
      Mappings:
      Namespace Name Mixin selector
      named setSpeed Lnet/minecraft/entity/LimbAnimator;setSpeed(F)V
      intermediary method_48567 Lnet/minecraft/class_8080;method_48567(F)V
      official a Lbze;a(F)V
    • updateLimbs Link icon

      public void updateLimbs(float targetSpeed, float speedChangeRate, float timeScale)
      Called every tick to update limbs.
      Parameters:
      targetSpeed - the target limb speed, that may be reached over multiple ticks. Limb speed affects the amplitude of the limb swings as well as how fast they move
      speedChangeRate - the rate that the current speed will be updated to the target speed, from 0 to 1. A value of 1 means the target speed will be reached immediately. A value of 0.5 means that the speed will be updated half way towards the target speed each time this method is called. Used to smooth out changes in amplitude
      timeScale - affects the speed of the limb movement, but without affecting the amplitude of the limb swings
      Mappings:
      Namespace Name Mixin selector
      named updateLimbs Lnet/minecraft/entity/LimbAnimator;updateLimbs(FFF)V
      intermediary method_48568 Lnet/minecraft/class_8080;method_48568(FFF)V
      official a Lbze;a(FFF)V
    • reset Link icon

      public void reset()
      Mappings:
      Namespace Name Mixin selector
      named reset Lnet/minecraft/entity/LimbAnimator;reset()V
      intermediary method_61433 Lnet/minecraft/class_8080;method_61433()V
      official a Lbze;a()V
    • getSpeed Link icon

      public float getSpeed()
      Mappings:
      Namespace Name Mixin selector
      named getSpeed Lnet/minecraft/entity/LimbAnimator;getSpeed()F
      intermediary method_48566 Lnet/minecraft/class_8080;method_48566()F
      official b Lbze;b()F
    • getAmplitude Link icon

      public float getAmplitude(float tickProgress)
      Mappings:
      Namespace Name Mixin selector
      named getAmplitude Lnet/minecraft/entity/LimbAnimator;getAmplitude(F)F
      intermediary method_48570 Lnet/minecraft/class_8080;method_48570(F)F
      official b Lbze;b(F)F
    • getAnimationProgress Link icon

      public float getAnimationProgress()
      Mappings:
      Namespace Name Mixin selector
      named getAnimationProgress Lnet/minecraft/entity/LimbAnimator;getAnimationProgress()F
      intermediary method_48569 Lnet/minecraft/class_8080;method_48569()F
      official c Lbze;c()F
    • getAnimationProgress Link icon

      public float getAnimationProgress(float tickProgress)
      Mappings:
      Namespace Name Mixin selector
      named getAnimationProgress Lnet/minecraft/entity/LimbAnimator;getAnimationProgress(F)F
      intermediary method_48572 Lnet/minecraft/class_8080;method_48572(F)F
      official c Lbze;c(F)F
    • isLimbMoving Link icon

      public boolean isLimbMoving()
      Mappings:
      Namespace Name Mixin selector
      named isLimbMoving Lnet/minecraft/entity/LimbAnimator;isLimbMoving()Z
      intermediary method_48571 Lnet/minecraft/class_8080;method_48571()Z
      official d Lbze;d()Z