public class Animations
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private java.util.Map<java.lang.Integer,Animation> |
animations
All defined animations.
|
private GuiStateListener |
guiStateListener
The
GuiStateListener for detecting established or dropped
connections. |
Constructor and Description |
---|
Animations(GuiStateManager guiStateManager)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
void |
addAnimation(int animationId,
int flags,
int[] faces)
Defines a new animation.
|
Animation |
get(int animationId)
Returns the animation for an animation id.
|
@NotNull private final java.util.Map<java.lang.Integer,Animation> animations
@NotNull private final GuiStateListener guiStateListener
GuiStateListener
for detecting established or dropped
connections.public Animations(@Nullable GuiStateManager guiStateManager)
guiStateManager
- the gui state manager to watch; null
to
not watchpublic void addAnimation(int animationId, int flags, @NotNull int[] faces)
animationId
- the animation idflags
- flags for the animation; currently unusedfaces
- the faces list of the animation@Nullable public Animation get(int animationId)
animationId
- the animation idnull
if the animation id does
not exist