getOrCreate

@NotNull
abstract fun getOrCreate(@NotNull name: @NotNull String, @NotNull supplier: @NotNull Supplier<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

supplier

a supplier for the render pipeline

modifier

the tracker modifier

preUpdateConsumer

a consumer to run before updates