-
- All Implemented Interfaces:
public interface SendableAnimationAn Animation associated with a org.bukkit.entity.Player that can be sent to the associated org.bukkit.entity.Player.
-
-
Method Summary
Modifier and Type Method Description abstract Unitstart()Starts sending the frames of the Animation to the associated org.bukkit.entity.Player. abstract Unitstop()Stops sending the frames of the Animation to the associated org.bukkit.entity.Player. abstract Unitupdate(AnimationFrame frame)Sends the given AnimationFrame to the associated org.bukkit.entity.Player and tells the frame to schedule the next frame to be sent. abstract UnitonStop(Runnable runnable)Runs the Runnable when the animation is done sending or . abstract BooleangetIsContinuous()If true, then the Animation will loop when it hits the last frame, or until stop is called.abstract UnitsetIsContinuous(Boolean isContinuous)If true, then the Animation will loop when it hits the last frame, or until stop is called.abstract BooleangetIsRunning()Checks whether or not the animation is currently running. -
-
Method Detail
-
start
abstract Unit start()
Starts sending the frames of the Animation to the associated org.bukkit.entity.Player.
-
stop
abstract Unit stop()
Stops sending the frames of the Animation to the associated org.bukkit.entity.Player.
-
update
abstract Unit update(AnimationFrame frame)
Sends the given AnimationFrame to the associated org.bukkit.entity.Player and tells the frame to schedule the next frame to be sent.
- Parameters:
frame- The frame to be sent.
-
onStop
abstract Unit onStop(Runnable runnable)
Runs the Runnable when the animation is done sending or .stop is called.
- Parameters:
runnable- The runnable to be run, when the animation is done sending.
-
getIsContinuous
abstract Boolean getIsContinuous()
If
true, then the Animation will loop when it hits the last frame, or until stop is called.
-
setIsContinuous
abstract Unit setIsContinuous(Boolean isContinuous)
If
true, then the Animation will loop when it hits the last frame, or until stop is called.
-
getIsRunning
abstract Boolean getIsRunning()
Checks whether or not the animation is currently running.
If
truethe animation is running and scheduling sending of the frames. Iffalsethe animation isn't running.
-
-
-
-