public class ModelAnimator
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static ModelAnimator |
create() |
void |
endKeyframe()
End the current keyframe.
|
IAnimatedEntity |
getEntity() |
void |
move(net.minecraft.client.model.ModelRenderer box,
float x,
float y,
float z)
Move a box in the current keyframe.
|
void |
resetKeyframe(int duration)
Reset this keyframe to its original state
|
void |
rotate(net.minecraft.client.model.ModelRenderer box,
float x,
float y,
float z)
Rotate a box in the current keyframe.
|
boolean |
setAnimation(Animation animation)
Start an animation
|
void |
setStaticKeyframe(int duration)
Add a static keyframe with a specific duration to the animation.
|
void |
startKeyframe(int duration)
Start a keyframe for the current animation.
|
void |
update(IAnimatedEntity entity)
Update the animations of this model.
|
public static ModelAnimator create()
public IAnimatedEntity getEntity()
IAnimatedEntity instance. Null if update(net.ilexiconn.llibrary.server.animation.IAnimatedEntity) has never been called.public void update(IAnimatedEntity entity)
entity - the entity instancepublic boolean setAnimation(Animation animation)
animation - the animation instancepublic void startKeyframe(int duration)
duration - the keyframe durationpublic void setStaticKeyframe(int duration)
duration - the keyframe durationpublic void resetKeyframe(int duration)
duration - the keyframe durationpublic void rotate(net.minecraft.client.model.ModelRenderer box,
float x,
float y,
float z)
box - the box to rotatex - the x rotationy - the y rotationz - the z rotationpublic void move(net.minecraft.client.model.ModelRenderer box,
float x,
float y,
float z)
box - the box to movex - the x offsety - the y offsetz - the z offsetpublic void endKeyframe()