Class Animations

java.lang.Object
com.realtime.crossfire.jxclient.animations.Animations

public class Animations extends Object
Manages animations received from the server. Animations are uniquely identified by an animation id. Each animation consists of a list of faces.
  • Constructor Details

    • Animations

      public Animations(@Nullable @Nullable GuiStateManager guiStateManager)
      Creates a new instance.
      Parameters:
      guiStateManager - the gui state manager to watch; null to not watch
  • Method Details

    • addAnimation

      public void addAnimation(int animationId, int @NotNull [] faces)
      Defines a new animation.
      Parameters:
      animationId - the animation id
      faces - 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 null if the animation id does not exist