Class Animations
- java.lang.Object
-
- com.realtime.crossfire.jxclient.animations.Animations
-
public class Animations extends java.lang.ObjectManages animations received from the server. Animations are uniquely identified by an animation id. Each animation consists of a list of faces.
-
-
Constructor Summary
Constructors Constructor Description Animations(@Nullable GuiStateManager guiStateManager)Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddAnimation(int animationId, int flags, int @NotNull [] faces)Defines a new animation.@Nullable Animationget(int animationId)Returns the animation for an animation id.
-
-
-
Constructor Detail
-
Animations
public Animations(@Nullable @Nullable GuiStateManager guiStateManager)Creates a new instance.- Parameters:
guiStateManager- the gui state manager to watch;nullto not watch
-
-
Method Detail
-
addAnimation
public void addAnimation(int animationId, int flags, int @NotNull [] faces)Defines a new animation.- Parameters:
animationId- the animation idflags- flags for the animation; currently unusedfaces- the faces list of the animation
-
get
@Nullable public @Nullable Animation get(int animationId)
Returns the animation for an animation id.- Parameters:
animationId- the animation id- Returns:
- the animation instance, or
nullif the animation id does not exist
-
-