Class SequentialAnimation
java.lang.Object
xyz.xenondevs.invui.animation.impl.AbstractAnimation
xyz.xenondevs.invui.animation.impl.AbstractSoundAnimation
xyz.xenondevs.invui.animation.impl.SequentialAnimation
- All Implemented Interfaces:
Animation
An animation that shows the slots sequentially, ordered by their index.
-
Constructor Summary
ConstructorDescriptionSequentialAnimation
(int tickDelay, boolean sound) Creates a newSequentialAnimation
. -
Method Summary
Modifier and TypeMethodDescriptionprotected void
handleFrame
(int frame) Handles the next frame of theAnimation
.Methods inherited from class xyz.xenondevs.invui.animation.impl.AbstractAnimation
addFinishHandler, addShowHandler, cancel, convToIndex, finish, getCurrentViewers, getHeight, getSlots, getWidth, setGui, setSlots, setWindows, show, start
-
Constructor Details
-
SequentialAnimation
public SequentialAnimation(int tickDelay, boolean sound) Creates a newSequentialAnimation
.- Parameters:
tickDelay
- The delay between each slot being shown.sound
- Whether a sound should be played when the slot is shown.
-
-
Method Details
-
handleFrame
protected void handleFrame(int frame) Description copied from class:AbstractAnimation
Handles the next frame of theAnimation
.- Specified by:
handleFrame
in classAbstractAnimation
- Parameters:
frame
- The current frame
-