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

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

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

start
Link copied to clipboard
abstract fun start()

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

stop
Link copied to clipboard
abstract fun stop()

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

update
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

isContinuous
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.

isRunning
Link copied to clipboard
abstract val isRunning: Boolean

Checks whether or not the animation is currently running.

Sources

jvm source
Link copied to clipboard