Package net.minecraft.entity
Class LimbAnimator
java.lang.Object
net.minecraft.entity.LimbAnimator
- Mappings:
Namespace Name named net/minecraft/entity/LimbAnimator
intermediary net/minecraft/class_8080
official bze
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate float
How far the limbs have progressed in swinging over time.private float
private float
The speed of the limb movement, also affects the amplitude of their swing.private float
Likespeed
, affects the speed of the limb movement, but without affecting the amplitude of the limb swings. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfloat
getAmplitude
(float tickProgress) float
float
getAnimationProgress
(float tickProgress) float
getSpeed()
boolean
void
reset()
void
setSpeed
(float speed) void
updateLimbs
(float targetSpeed, float speedChangeRate, float timeScale) Called every tick to update limbs.
-
Field Details
-
lastSpeed
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
private float speedThe 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
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 animationProgress
Lnet/minecraft/entity/LimbAnimator;animationProgress:F
intermediary field_42111
Lnet/minecraft/class_8080;field_42111:F
official c
Lbze;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 timeScale
Lnet/minecraft/entity/LimbAnimator;timeScale:F
intermediary field_52449
Lnet/minecraft/class_8080;field_52449:F
official d
Lbze;d:F
-
-
Constructor Details
-
Method Details
-
setSpeed
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
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 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
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
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
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
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
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
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
-