Package net.minecraft.entity
Class LimbAnimator
java.lang.Object
net.minecraft.entity.LimbAnimator
- Mappings:
Namespace Name named net/minecraft/entity/LimbAnimatorintermediary net/minecraft/class_8080official bze
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate floatHow far the limbs have progressed in swinging over time.private floatprivate floatThe speed of the limb movement, also affects the amplitude of their swing.private floatLikespeed, affects the speed of the limb movement, but without affecting the amplitude of the limb swings. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfloatgetAmplitude(float tickProgress) floatfloatgetAnimationProgress(float tickProgress) floatgetSpeed()booleanvoidreset()voidsetSpeed(float speed) voidupdateLimbs(float targetSpeed, float speedChangeRate, float timeScale) Called every tick to update limbs.
-
Field Details
-
lastSpeed
private float lastSpeed- Mappings:
Namespace Name Mixin selector named lastSpeedLnet/minecraft/entity/LimbAnimator;lastSpeed:Fintermediary field_42109Lnet/minecraft/class_8080;field_42109:Fofficial aLbze;a:F
-
speed
private float speedThe speed of the limb movement, also affects the amplitude of their swing.- Mappings:
Namespace Name Mixin selector named speedLnet/minecraft/entity/LimbAnimator;speed:Fintermediary field_42110Lnet/minecraft/class_8080;field_42110:Fofficial bLbze;b:F
-
animationProgress
private float animationProgressHow 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 animationProgressLnet/minecraft/entity/LimbAnimator;animationProgress:Fintermediary field_42111Lnet/minecraft/class_8080;field_42111:Fofficial cLbze;c:F
-
timeScale
private float timeScaleLikespeed, 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 timeScaleLnet/minecraft/entity/LimbAnimator;timeScale:Fintermediary field_52449Lnet/minecraft/class_8080;field_52449:Fofficial dLbze;d:F
-
-
Constructor Details
-
LimbAnimator
public LimbAnimator()
-
-
Method Details
-
setSpeed
public void setSpeed(float speed) - Mappings:
Namespace Name Mixin selector named setSpeedLnet/minecraft/entity/LimbAnimator;setSpeed(F)Vintermediary method_48567Lnet/minecraft/class_8080;method_48567(F)Vofficial aLbze;a(F)V
-
updateLimbs
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 movespeedChangeRate- 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 amplitudetimeScale- affects the speed of the limb movement, but without affecting the amplitude of the limb swings- Mappings:
Namespace Name Mixin selector named updateLimbsLnet/minecraft/entity/LimbAnimator;updateLimbs(FFF)Vintermediary method_48568Lnet/minecraft/class_8080;method_48568(FFF)Vofficial aLbze;a(FFF)V
-
reset
public void reset()- Mappings:
Namespace Name Mixin selector named resetLnet/minecraft/entity/LimbAnimator;reset()Vintermediary method_61433Lnet/minecraft/class_8080;method_61433()Vofficial aLbze;a()V
-
getSpeed
public float getSpeed()- Mappings:
Namespace Name Mixin selector named getSpeedLnet/minecraft/entity/LimbAnimator;getSpeed()Fintermediary method_48566Lnet/minecraft/class_8080;method_48566()Fofficial bLbze;b()F
-
getAmplitude
public float getAmplitude(float tickProgress) - Mappings:
Namespace Name Mixin selector named getAmplitudeLnet/minecraft/entity/LimbAnimator;getAmplitude(F)Fintermediary method_48570Lnet/minecraft/class_8080;method_48570(F)Fofficial bLbze;b(F)F
-
getAnimationProgress
public float getAnimationProgress()- Mappings:
Namespace Name Mixin selector named getAnimationProgressLnet/minecraft/entity/LimbAnimator;getAnimationProgress()Fintermediary method_48569Lnet/minecraft/class_8080;method_48569()Fofficial cLbze;c()F
-
getAnimationProgress
public float getAnimationProgress(float tickProgress) - Mappings:
Namespace Name Mixin selector named getAnimationProgressLnet/minecraft/entity/LimbAnimator;getAnimationProgress(F)Fintermediary method_48572Lnet/minecraft/class_8080;method_48572(F)Fofficial cLbze;c(F)F
-
isLimbMoving
public boolean isLimbMoving()- Mappings:
Namespace Name Mixin selector named isLimbMovingLnet/minecraft/entity/LimbAnimator;isLimbMoving()Zintermediary method_48571Lnet/minecraft/class_8080;method_48571()Zofficial dLbze;d()Z
-