EntityTrackerRegistry
class EntityTrackerRegistry
Manages all entity trackers for a specific entity.
This registry handles the lifecycle of trackers attached to an entity, including loading, saving, spawning, and despawning. It acts as a central hub for accessing and manipulating models on an entity.
The registry registers the entity's Molang queries when it is created. All trackers in this registry use the same runtime context through keyframeContext.
var registry = EntityTrackerRegistry.registry(entity.uuid());
Content copied to clipboard
Since
1.15.2
Companion functions
Link copied to clipboard
@ApiStatus.Internal
@NotNull
Gets or creates a registry for a base entity.
Link copied to clipboard
Returns a list of all active registries.
Iterates over all active registries.
Link copied to clipboard
Retrieves a registry by entity ID.
Retrieves a registry by entity UUID.
Retrieves a registry for a base entity.
Functions
Link copied to clipboard
@ApiStatus.Internal
@NotNull
Creates a new tracker in this registry.
Link copied to clipboard
Returns a stream of all displays from all trackers.
Link copied to clipboard
Returns the source entity.
Link copied to clipboard
Returns the first tracker in the registry.
Link copied to clipboard
@ApiStatus.Internal
@NotNull
Gets or creates a tracker in this registry.
Link copied to clipboard
Checks if any hitbox has a controlling passenger.
Link copied to clipboard
Checks if any hitbox has a passenger.
Link copied to clipboard
Returns the hide option for a specific player.
Link copied to clipboard
Returns a collection of all active hitboxes for this registry.
Link copied to clipboard
Loads trackers from the entity's persistent data.
Loads trackers from a stream of data.
Link copied to clipboard
@NotNull
@Unmodifiable
Returns the map of currently mounted hitboxes.
Link copied to clipboard
Spawns trackers for a player.
Link copied to clipboard
Spawns trackers for a player only if not already spawned.
Link copied to clipboard
Retrieves a tracker by key.
Link copied to clipboard
Returns all trackers in this registry.
Link copied to clipboard
Returns a stream of all players viewing this registry.