Overview
TheTrackerUpdateAction sealed interface represents an action that updates the state of a RenderedBone. Actions can modify display properties like brightness, glow, item stack, billboard mode, and more. They are applied to bones matching a specific predicate.
Package: kr.toxicity.model.api.tracker
Since: 1.15.2
Interface Methods
test
bone- The target bonepredicate- The predicate to check against
true if the bone was updated
then
action- The next action
stream
Factory Methods
brightness
block- The block light level (0-15)sky- The skylight level (0-15)
glow
glow-trueto enable glow
glowColor
glowColor- The RGB glow color (hex format)
viewRange
viewRange- The view range in blocks
tint
rgb- The RGB tint color (hex format)
previousTint
enchant
enchant-trueto enable glint
togglePart
toggle-trueto show,falseto hide
itemStack
itemStack- The new item stack
billboard
billboard- The billboard type (FIXED, VERTICAL, HORIZONTAL, CENTER)
itemMapping
moveDuration
moveDuration- The duration in ticks
composite
actions- The actions to combine
perBone
builder- The function to generate actions
none
Action Types
Brightness
Glow
GlowColor
ViewRange
Enchant
Tint
PreviousTint
TogglePart
ItemStack
Billboard
ItemMapping
MoveDuration
Composite
PerBone
None
Usage Examples
Basic Updates
Filtered Updates
Composite Actions
Per-Bone Dynamic Actions
Billboard Modes
Item Stack Updates
Movement Interpolation
Visibility Control
View Range Control
Advanced Examples
Damage Effect
Glowing Outline
Equipment Display
Night Vision Effect
Best Practices
- Combine Actions: Use
composite()orthen()to apply multiple changes atomically - Use Predicates: Filter bones efficiently with
BonePredicateinstead of updating all bones - Revert Changes: Store previous states when making temporary changes
- Performance: Batch updates together rather than calling
update()multiple times - None Action: Use
none()for conditional logic instead of null checks
See Also
- Tracker - Base tracker class that uses update actions
- EntityTracker - Entity tracker implementation
- DummyTracker - Dummy tracker implementation
