Skip to content
On this page
Common

ClientItemRenderAnimation

top.katton.apicommon/src/main/kotlin/top/katton/api/ClientItemRenderAnimation.kt
A transform keyframe on an animation track. [time] is usually 0.0 to 1.0.

ClientItemRenderEasing

ClientItemRenderEasingCommonEnum Class
kotlin
enum class ClientItemRenderEasing(private val sampler: (Float) -> Float)

ClientItemRenderEasing.apply

ClientItemRenderEasing.applyCommonFunction
kotlin
fun apply(progress: Float): Float

Clamp only the input progress. The sampled value is intentionally raw so overshooting curves such as back, elastic, or bounce keep their shape.

ClientItemRenderAnimationKeyframe

ClientItemRenderAnimationKeyframeCommonData Class
kotlin
data class ClientItemRenderAnimationKeyframe( override val time: Float, val value: Vec3, val easing: ClientItemRenderEasing

A transform keyframe on an animation track. [time] is usually 0.0 to 1.0.

Translation values are block offsets, rotation values are degrees, and scale values are multipliers.

ClientItemRenderFunctionKeyframe

ClientItemRenderFunctionKeyframeCommonData Class
kotlin
data class ClientItemRenderFunctionKeyframe( override val time: Float, val function: (ClientItemRenderMarker) -> Unit ) : ClientItemRenderKeyframe

A client-local function keyframe. Function callbacks are not serialized over the network; server-spawned markers can only transmit transform keyframes.

ClientItemRenderAnimation

ClientItemRenderAnimationCommonData Class
kotlin
data class ClientItemRenderAnimation( val target: ClientItemRenderAnimationTarget, val mode: ClientItemRenderAnimationMode

One animation track inside a [ClientItemRenderAnimationSet].

ClientItemRenderAnimationSet

ClientItemRenderAnimationSetCommonData Class
kotlin
data class ClientItemRenderAnimationSet( val animations: List<ClientItemRenderAnimation>, val durationTicks: Int, val delayTicks: Int

A playable animation set. All tracks in this set share the same duration, delay, and loop behavior. Multiple sets can be played together and stacked.