create

@ApiStatus.Internal
@NotNull
open fun create(@NotNull key: @NotNull String, @NotNull supplier: @NotNull (EntityTrackerRegistry) -> EntityTracker): @NotNull EntityTracker

Creates a new tracker in this registry.

Return

the created tracker

Since

1.15.2

Parameters

key

the key (model ID)

supplier

the supplier to create the tracker