public class Animations
extends java.lang.Object
Constructor and Description |
---|
Animations(@Nullable GuiStateManager guiStateManager)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
void |
addAnimation(int animationId,
int[] faces)
Defines a new animation.
|
@Nullable Animation |
get(int animationId)
Returns the animation for an animation id.
|
public Animations(@Nullable @Nullable GuiStateManager guiStateManager)
guiStateManager
- the gui state manager to watch; null
to
not watchpublic void addAnimation(int animationId, int[] faces)
animationId
- the animation idfaces
- the faces list of the animation@Nullable public @Nullable Animation get(int animationId)
animationId
- the animation idnull
if the animation id does
not exist