Interface TrackerUpdateAction

All Superinterfaces:
BiPredicate<RenderedBone,BonePredicate>
All Known Implementing Classes:
TrackerUpdateAction.Billboard, TrackerUpdateAction.Brightness, TrackerUpdateAction.Composite, TrackerUpdateAction.Enchant, TrackerUpdateAction.Glow, TrackerUpdateAction.GlowColor, TrackerUpdateAction.ItemMapping, TrackerUpdateAction.ItemStack, TrackerUpdateAction.MoveDuration, TrackerUpdateAction.None, TrackerUpdateAction.PerBone, TrackerUpdateAction.PreviousTint, TrackerUpdateAction.Tint, TrackerUpdateAction.TogglePart, TrackerUpdateAction.ViewRange

Represents an action that updates the state of a RenderedBone.

Actions can modify display properties like brightness, glow, item stack, and more. They are applied to bones matching a specific predicate.

Since:
1.15.2
  • Method Details

    • brightness

      @NotNull static @NotNull TrackerUpdateAction.Brightness brightness(int block, int sky)
      Creates an action to update display brightness.
      Parameters:
      block - the block light level
      sky - the skylight level
      Returns:
      the action
      Since:
      1.15.2
    • glow

      @NotNull static @NotNull TrackerUpdateAction.Glow glow(boolean glow)
      Creates an action to toggle the glowing effect.
      Parameters:
      glow - true to enable glow
      Returns:
      the action
      Since:
      1.15.2
    • glowColor

      @NotNull static @NotNull TrackerUpdateAction.GlowColor glowColor(int glowColor)
      Creates an action to set the glow color.
      Parameters:
      glowColor - the RGB glow color
      Returns:
      the action
      Since:
      1.15.2
    • viewRange

      @NotNull static @NotNull TrackerUpdateAction.ViewRange viewRange(float viewRange)
      Creates an action to set the view range.
      Parameters:
      viewRange - the view range
      Returns:
      the action
      Since:
      1.15.2
    • tint

      @NotNull static @NotNull TrackerUpdateAction.Tint tint(int rgb)
      Creates an action to apply a tint color.
      Parameters:
      rgb - the RGB tint color
      Returns:
      the action
      Since:
      1.15.2
    • previousTint

      @NotNull static @NotNull TrackerUpdateAction.PreviousTint previousTint()
      Creates an action to revert to the previous tint.
      Returns:
      the action
      Since:
      1.15.2
    • enchant

      @NotNull static @NotNull TrackerUpdateAction.Enchant enchant(boolean enchant)
      Creates an action to toggle the enchanted glint effect.
      Parameters:
      enchant - true to enable glint
      Returns:
      the action
      Since:
      1.15.2
    • togglePart

      @NotNull static @NotNull TrackerUpdateAction.TogglePart togglePart(boolean toggle)
      Creates an action to toggle the visibility of a part.
      Parameters:
      toggle - true to show, false to hide
      Returns:
      the action
      Since:
      1.15.2
    • itemStack

      @NotNull static @NotNull TrackerUpdateAction.ItemStack itemStack(@NotNull @NotNull TransformedItemStack itemStack)
      Creates an action to update the displayed item stack.
      Parameters:
      itemStack - the new item stack
      Returns:
      the action
      Since:
      1.15.2
    • billboard

      @NotNull static @NotNull TrackerUpdateAction.Billboard billboard(@NotNull @NotNull PlatformBillboard billboard)
      Creates an action to set the billboard constraint.
      Parameters:
      billboard - the billboard type
      Returns:
      the action
      Since:
      1.15.2
    • itemMapping

      @NotNull static @NotNull TrackerUpdateAction.ItemMapping itemMapping()
      Creates an action to update the item mapping.
      Returns:
      the action
      Since:
      1.15.2
    • moveDuration

      @NotNull static @NotNull TrackerUpdateAction.MoveDuration moveDuration(int moveDuration)
      Creates an action to set the movement interpolation duration.
      Parameters:
      moveDuration - the duration in ticks
      Returns:
      the action
      Since:
      1.15.2
    • composite

      @NotNull static @NotNull TrackerUpdateAction composite(@NotNull @NotNull TrackerUpdateAction... actions)
      Combines multiple actions into a single composite action.
      Parameters:
      actions - the actions to combine
      Returns:
      the composite action
      Since:
      1.15.2
    • perBone

      @NotNull static @NotNull TrackerUpdateAction.PerBone perBone(@NotNull @NotNull Function<RenderedBone,TrackerUpdateAction> builder)
      Creates an action that generates a specific action for each bone.
      Parameters:
      builder - the function to generate actions
      Returns:
      the per-bone action
      Since:
      1.15.2
    • none

      @NotNull static @NotNull TrackerUpdateAction.None none()
      Returns a no-op action.
      Returns:
      the none action
      Since:
      1.15.2
    • test

      boolean test(@NotNull @NotNull RenderedBone bone, @NotNull @NotNull BonePredicate predicate)
      Applies the action to a bone if it matches the predicate.
      Specified by:
      test in interface BiPredicate<RenderedBone,BonePredicate>
      Parameters:
      bone - the target bone
      predicate - the predicate to check against
      Returns:
      true if the bone was updated
      Since:
      1.15.2
    • then

      @NotNull default @NotNull TrackerUpdateAction then(@NotNull @NotNull TrackerUpdateAction action)
      Chains this action with another action.
      Parameters:
      action - the next action
      Returns:
      the combined action
      Since:
      1.15.2
    • stream

      @NotNull default @NotNull Stream<TrackerUpdateAction> stream()
      Returns a stream of actions (useful for flattening composites).
      Returns:
      the stream
      Since:
      1.15.2