Class Animations
java.lang.Object
com.realtime.crossfire.jxclient.animations.Animations
Manages animations received from the server. Animations are uniquely
identified by an animation id. Each animation consists of a list of faces.
-
Constructor Summary
ConstructorsConstructorDescriptionAnimations(@Nullable GuiStateManager guiStateManager) Creates a new instance. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddAnimation(int animationId, int @NotNull [] faces) Defines a new animation.@Nullable Animationget(int animationId) Returns the animation for an animation id.
-
Constructor Details
-
Animations
Creates a new instance.- Parameters:
guiStateManager- the gui state manager to watch;nullto not watch
-
-
Method Details
-
addAnimation
public void addAnimation(int animationId, int @NotNull [] faces) Defines a new animation.- Parameters:
animationId- the animation idfaces- the faces list of the animation
-
get
Returns the animation for an animation id.- Parameters:
animationId- the animation id- Returns:
- the animation instance, or
nullif the animation id does not exist
-