PerBone

Per-bone dynamic action.

Since

1.15.2

Parameters

builder

the function to generate actions

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
open fun and(other: BiPredicate<in T, in U>): BiPredicate<T, U>
Link copied to clipboard
@NotNull
open fun billboard(@NotNull billboard: @NotNull PlatformBillboard): @NotNull TrackerUpdateAction.Billboard
Creates an action to set the billboard constraint.
Link copied to clipboard
@NotNull
open fun brightness(block: Int, sky: Int): @NotNull TrackerUpdateAction.Brightness
Creates an action to update display brightness.
Link copied to clipboard
@NotNull
open fun composite(@NotNull actions: Array<@NotNull TrackerUpdateAction>): @NotNull TrackerUpdateAction
Combines multiple actions into a single composite action.
Link copied to clipboard
@NotNull
open fun enchant(enchant: Boolean): @NotNull TrackerUpdateAction.Enchant
Creates an action to toggle the enchanted glint effect.
Link copied to clipboard
abstract fun equals(p: Any): Boolean
Link copied to clipboard
@NotNull
open fun glow(glow: Boolean): @NotNull TrackerUpdateAction.Glow
Creates an action to toggle the glowing effect.
Link copied to clipboard
@NotNull
open fun glowColor(glowColor: Int): @NotNull TrackerUpdateAction.GlowColor
Creates an action to set the glow color.
Link copied to clipboard
abstract fun hashCode(): Int
Link copied to clipboard
@NotNull
open fun itemMapping(): @NotNull TrackerUpdateAction.ItemMapping
Creates an action to update the item mapping.
Link copied to clipboard
@NotNull
open fun itemStack(@NotNull itemStack: @NotNull TransformedItemStack): @NotNull TrackerUpdateAction.ItemStack
Creates an action to update the displayed item stack.
Link copied to clipboard
@NotNull
open fun moveDuration(moveDuration: Int): @NotNull TrackerUpdateAction.MoveDuration
Creates an action to set the movement interpolation duration.
Link copied to clipboard
open fun negate(): BiPredicate<T, U>
Link copied to clipboard
@NotNull
open fun none(): @NotNull TrackerUpdateAction.None
Returns a no-op action.
Link copied to clipboard
open fun or(other: BiPredicate<in T, in U>): BiPredicate<T, U>
Link copied to clipboard
@NotNull
open fun perBone(@NotNull builder: @NotNull (RenderedBone) -> TrackerUpdateAction): @NotNull TrackerUpdateAction.PerBone
Creates an action that generates a specific action for each bone.
Link copied to clipboard
@NotNull
open fun previousTint(): @NotNull TrackerUpdateAction.PreviousTint
Creates an action to revert to the previous tint.
Link copied to clipboard
@NotNull
open fun stream(): @NotNull Stream<TrackerUpdateAction>
Returns a stream of actions (useful for flattening composites).
Link copied to clipboard
abstract fun test(p: T, p1: U): Boolean

open fun test(@NotNull bone: @NotNull RenderedBone, @NotNull predicate: @NotNull BonePredicate): Boolean
Applies the action to a bone if it matches the predicate.
Link copied to clipboard
@NotNull
open fun then(@NotNull action: @NotNull TrackerUpdateAction): @NotNull TrackerUpdateAction
Chains this action with another action.
Link copied to clipboard
@NotNull
open fun tint(rgb: Int): @NotNull TrackerUpdateAction.Tint
Creates an action to apply a tint color.
Link copied to clipboard
@NotNull
open fun togglePart(toggle: Boolean): @NotNull TrackerUpdateAction.TogglePart
Creates an action to toggle the visibility of a part.
Link copied to clipboard
abstract fun toString(): String
Link copied to clipboard
@NotNull
open fun viewRange(viewRange: Float): @NotNull TrackerUpdateAction.ViewRange
Creates an action to set the view range.