Class BaseAnimation
java.lang.Object
dev.triumphteam.gui.animations.impl.BaseAnimation
- All Implemented Interfaces:
Animation
- Direct Known Subclasses:
InfiniteAnimation,SimpleAnimation
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
current
protected int current -
gui
-
runner
-
delay
protected final int delay -
frames
-
-
Constructor Details
-
BaseAnimation
-
-
Method Details
-
reset
public void reset()Description copied from interface:AnimationReset to the initial frame -
nextFrame
Description copied from interface:AnimationGo to the next frame -
start
Description copied from interface:AnimationStart the animation -
getDelay
public int getDelay() -
getGui
-
getRunnable
- Specified by:
getRunnablein interfaceAnimation- Returns:
- the bukkit runnable that handles frame updates
-
stop
public void stop()Description copied from interface:AnimationStops the animation -
onFinish
- Returns:
- The frame to return when the animation is finished
-