SendableAnimation

interface SendableAnimation

An Animation associated with a org.bukkit.entity.Player that can be sent to the associated org.bukkit.entity.Player.

Since

2.0.0

See also

Functions

Link copied to clipboard
abstract fun onStop(runnable: Runnable?)

Runs the Runnable when the animation is done sending or .stop is called.

Link copied to clipboard
abstract fun start()

Starts sending the frames of the Animation to the associated org.bukkit.entity.Player.

Link copied to clipboard
abstract fun stop()

Stops sending the frames of the Animation to the associated org.bukkit.entity.Player.

Link copied to clipboard
abstract fun update(frame: AnimationFrame?)

Sends the given AnimationFrame to the associated org.bukkit.entity.Player and tells the frame to schedule the next frame to be sent.

Properties

Link copied to clipboard
abstract var isContinuous: Boolean

If true, then the Animation will loop when it hits the last frame, or until stop is called.

Link copied to clipboard
abstract val isRunning: Boolean

Checks whether or not the animation is currently running.

Sources

Link copied to clipboard