public class AnimationPass
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected net.ilexiconn.llibrary.server.animation.Animation |
animation |
protected java.util.Map<net.ilexiconn.llibrary.server.animation.Animation,float[][]> |
animations |
protected float |
animationTick |
protected float |
inertiaFactor |
protected float |
limbSwing |
protected float |
limbSwingAmount |
protected net.ilexiconn.llibrary.client.model.tools.AdvancedModelRenderer[] |
parts |
protected PosedCuboid[] |
pose |
protected int |
poseCount |
protected int |
poseIndex |
protected float |
poseLength |
protected PosedCuboid[][] |
poses |
protected float[][] |
positionIncrements |
protected float[][] |
prevPositionIncrements |
protected float[][] |
prevRotationIncrements |
protected float |
prevTicks |
protected float[][] |
rotationIncrements |
protected boolean |
useInertia |
| Constructor and Description |
|---|
AnimationPass(java.util.Map<net.ilexiconn.llibrary.server.animation.Animation,float[][]> animations,
PosedCuboid[][] poses,
boolean useInertia) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
applyRotations(int partIndex) |
protected void |
applyTranslations(int partIndex) |
protected float |
calculateInertiaFactor() |
protected float |
getAnimationDegree(Animatable entity) |
protected float |
getAnimationSpeed(Animatable entity) |
protected net.ilexiconn.llibrary.server.animation.Animation |
getRequestedAnimation(Animatable entity) |
boolean |
incrementPose() |
void |
init(net.ilexiconn.llibrary.client.model.tools.AdvancedModelRenderer[] parts,
Animatable entity) |
void |
initAnimation(Animatable entity,
net.ilexiconn.llibrary.server.animation.Animation animation) |
protected void |
initAnimationTicks(Animatable entity) |
protected void |
initIncrements(Animatable entity) |
void |
initPoseModel() |
protected boolean |
isEntityAnimationDependent() |
boolean |
isLooping() |
protected void |
onPoseFinish(Animatable entity,
float ticks) |
void |
performAnimations(Animatable entity,
float limbSwing,
float limbSwingAmount,
float ticks) |
protected void |
setAnimation(Animatable entity,
net.ilexiconn.llibrary.server.animation.Animation requestedAnimation) |
protected void |
setPose(Animatable entity,
float ticks) |
protected void |
setPose(int poseIndex) |
protected void |
startAnimation(Animatable entity) |
boolean |
updateAnimationTick(Animatable entity,
float ticks) |
protected void |
updatePreviousPose() |
protected final java.util.Map<net.ilexiconn.llibrary.server.animation.Animation,float[][]> animations
protected final PosedCuboid[][] poses
protected float[][] rotationIncrements
protected float[][] positionIncrements
protected float[][] prevRotationIncrements
protected float[][] prevPositionIncrements
protected int poseCount
protected int poseIndex
protected float poseLength
protected float animationTick
protected float prevTicks
protected net.ilexiconn.llibrary.client.model.tools.AdvancedModelRenderer[] parts
protected PosedCuboid[] pose
protected net.ilexiconn.llibrary.server.animation.Animation animation
protected boolean useInertia
protected float inertiaFactor
protected float limbSwing
protected float limbSwingAmount
public AnimationPass(java.util.Map<net.ilexiconn.llibrary.server.animation.Animation,float[][]> animations,
PosedCuboid[][] poses,
boolean useInertia)
public void init(net.ilexiconn.llibrary.client.model.tools.AdvancedModelRenderer[] parts,
Animatable entity)
public void initPoseModel()
protected void initIncrements(Animatable entity)
public void initAnimation(Animatable entity, net.ilexiconn.llibrary.server.animation.Animation animation)
protected float calculateInertiaFactor()
public void performAnimations(Animatable entity, float limbSwing, float limbSwingAmount, float ticks)
public boolean updateAnimationTick(Animatable entity, float ticks)
protected void applyRotations(int partIndex)
protected void applyTranslations(int partIndex)
protected void setPose(int poseIndex)
protected void initAnimationTicks(Animatable entity)
protected void startAnimation(Animatable entity)
protected void setPose(Animatable entity, float ticks)
protected void onPoseFinish(Animatable entity, float ticks)
public boolean incrementPose()
protected void setAnimation(Animatable entity, net.ilexiconn.llibrary.server.animation.Animation requestedAnimation)
protected void updatePreviousPose()
protected float getAnimationSpeed(Animatable entity)
protected float getAnimationDegree(Animatable entity)
protected net.ilexiconn.llibrary.server.animation.Animation getRequestedAnimation(Animatable entity)
protected boolean isEntityAnimationDependent()
public boolean isLooping()