Class AnimationSet

java.lang.Object
com.realtime.crossfire.jxclient.map.AnimationSet

public class AnimationSet extends Object
Maintains AnimationState instances for item tag values.
  • Constructor Details

    • AnimationSet

      public AnimationSet()
  • Method Details

    • add

      public void add(int tag, @NotNull @NotNull AnimationState animationState)
      Adds a new AnimationState for an item tag. If the location was not empty, the previous animation state is freed.
      Parameters:
      tag - the item tag to add to
      animationState - the animation state to add
    • remove

      public void remove(int tag)
      Clears an item tag.
      Parameters:
      tag - the item tag to clear
    • updateSpeed

      public void updateSpeed(int tag, int speed)
      Updates the animation speed value of an item tag.
      Parameters:
      tag - the item tag to update
      speed - the new animation speed
    • getAllAnimationStates

      @NotNull public @NotNull Collection<AnimationState> getAllAnimationStates()
      Returns all AnimationState instances.
      Returns:
      the instances; it is read-only; it is valid until this instance is modified the next time