EntityTrackerRegistry

Properties

Link copied to clipboard
val TRACKING_ID: NamespacedKey
Tracker's namespace.

Functions

Link copied to clipboard
@NotNull
open fun adapter(): @NotNull EntityAdapter
Link copied to clipboard
open fun close(): Boolean
Link copied to clipboard
@ApiStatus.Internal
@NotNull
open fun create(@NotNull key: @NotNull String, @NotNull supplier: @NotNull (EntityTrackerRegistry) -> EntityTracker): @NotNull EntityTracker
Link copied to clipboard
open fun despawn()
Link copied to clipboard
@NotNull
open fun displays(): @NotNull Stream<ModelDisplay>
Link copied to clipboard
@NotNull
open fun entity(): @NotNull Entity
Link copied to clipboard
@Nullable
open fun first(): @Nullable EntityTracker
Link copied to clipboard
@ApiStatus.Internal
@NotNull
open fun getOrCreate(@NotNull entity: @NotNull Entity): @NotNull EntityTrackerRegistry
@NotNull
open fun getOrCreate(@NotNull key: @NotNull String, @NotNull supplier: @NotNull (EntityTrackerRegistry) -> EntityTracker): @NotNull EntityTracker
Link copied to clipboard
open fun hasModelData(@NotNull entity: @NotNull Entity): Boolean
Link copied to clipboard
@NotNull
open fun hideOption(@NotNull uuid: @NotNull UUID): @NotNull EntityHideOption
Link copied to clipboard
open fun id(): Int
Link copied to clipboard
open fun isClosed(): Boolean
Link copied to clipboard
open fun isSpawned(@NotNull uuid: @NotNull UUID): Boolean
open fun isSpawned(@NotNull player: @NotNull Player): Boolean
Checks this tracker is spawned by some player
Link copied to clipboard
open fun load()
open fun load(@NotNull stream: @NotNull Stream<TrackerData>)
Link copied to clipboard
open fun refresh()
Link copied to clipboard
open fun registries(@NotNull consumer: @NotNull Consumer<EntityTrackerRegistry>)
Link copied to clipboard
@Nullable
open fun registry(id: Int): @Nullable EntityTrackerRegistry
@Nullable
open fun registry(@NotNull uuid: @NotNull UUID): @Nullable EntityTrackerRegistry
@Nullable
open fun registry(@NotNull entity: @NotNull Entity): @Nullable EntityTrackerRegistry
Link copied to clipboard
open fun reload()
Link copied to clipboard
open fun remove(@NotNull key: @NotNull String): Boolean
open fun remove(@NotNull player: @NotNull Player): Boolean
Link copied to clipboard
open fun save()
Link copied to clipboard
@NotNull
open fun serialize(): @NotNull JsonArray
Link copied to clipboard
open fun spawn(@NotNull player: @NotNull Player): Boolean
Spawns this tracker to some player
Link copied to clipboard
@Nullable
open fun tracker(@Nullable key: @Nullable String): @Nullable EntityTracker
Link copied to clipboard
@NotNull
@Unmodifiable
open fun trackers(): @NotNull @Unmodifiable Collection<EntityTracker>
Link copied to clipboard
@NotNull
open fun uuid(): @NotNull UUID
Link copied to clipboard
@NotNull
open fun viewedPlayer(): @NotNull Stream<PlayerChannelHandler>