getOrCreate

@NotNull
open fun getOrCreate(@NotNull name: @NotNull String, @NotNull function: @NotNull (RenderSource.Entity) -> RenderPipeline, @NotNull modifier: @NotNull TrackerModifier, @NotNull preUpdateConsumer: @NotNull Consumer<EntityTracker>): @NotNull EntityTracker

Gets or creates an entity tracker for this source.

Return

the entity tracker

Since

1.15.2

Parameters

name

the name of the tracker

function

a function for the render pipeline

modifier

the tracker modifier

preUpdateConsumer

a consumer to run before updates