EntityTracker

@ApiStatus.Internal
constructor(@NotNull registry: @NotNull EntityTrackerRegistry, @NotNull pipeline: @NotNull RenderPipeline, @NotNull modifier: @NotNull TrackerModifier, @NotNull preUpdateConsumer: @NotNull Consumer<EntityTracker>)

Creates a new entity tracker using the registry's shared Molang runtime context.


var tracker = new EntityTracker(registry, pipeline, modifier,
    entityTracker -> entityTracker.keyframeContext().set("custom_weight", 0.5F));

Since

1.15.2

Parameters

registry

the entity tracker registry that supplies the shared context

pipeline

the render pipeline

modifier

the tracker modifier

preUpdateConsumer

a consumer to run before the first update