getOrCreate

@ApiStatus.Internal
@NotNull
open fun getOrCreate(@NotNull entity: @NotNull BaseEntity): @NotNull EntityTrackerRegistry

Gets or creates registry by entity

Return

registry

Parameters

entity

entity


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

Gets or creates tracker in this registry

Return

created tracker

Parameters

key

key

supplier

supplier