public class AnimationSet
extends java.lang.Object
AnimationState instances for item tag values.| Constructor and Description |
|---|
AnimationSet() |
| Modifier and Type | Method and Description |
|---|---|
void |
add(int tag,
@NotNull AnimationState animationState)
Adds a new
AnimationState for an item tag. |
@NotNull java.util.Collection<AnimationState> |
getAllAnimationStates()
Returns all
AnimationState instances. |
void |
remove(int tag)
Clears an item tag.
|
void |
updateSpeed(int tag,
int speed)
Updates the animation speed value of an item tag.
|
public void add(int tag,
@NotNull
@NotNull AnimationState animationState)
AnimationState for an item tag. If the location was
not empty, the previous animation state is freed.tag - the item tag to add toanimationState - the animation state to addpublic void remove(int tag)
tag - the item tag to clearpublic void updateSpeed(int tag,
int speed)
tag - the item tag to updatespeed - the new animation speed@NotNull public @NotNull java.util.Collection<AnimationState> getAllAnimationStates()
AnimationState instances.