Class AnimationSet
java.lang.Object
com.realtime.crossfire.jxclient.map.AnimationSet
Maintains
AnimationState instances for item tag values.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(int tag, @NotNull AnimationState animationState) Adds a newAnimationStatefor an item tag.@NotNull Collection<AnimationState>Returns allAnimationStateinstances.voidremove(int tag) Clears an item tag.voidupdateSpeed(int tag, int speed) Updates the animation speed value of an item tag.
-
Constructor Details
-
AnimationSet
public AnimationSet()
-
-
Method Details
-
add
Adds a newAnimationStatefor an item tag. If the location was not empty, the previous animation state is freed.- Parameters:
tag- the item tag to add toanimationState- 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 updatespeed- the new animation speed
-
getAllAnimationStates
Returns allAnimationStateinstances.- Returns:
- the instances; it is read-only; it is valid until this instance is modified the next time
-