Class PlayerTracker
java.lang.Object
kr.toxicity.model.api.tracker.Tracker
kr.toxicity.model.api.tracker.EntityTracker
kr.toxicity.model.api.tracker.PlayerTracker
- All Implemented Interfaces:
AutoCloseable
A specialized
EntityTracker for tracking players.
This tracker automatically configures the body rotator to player mode, ensuring correct head and body rotation synchronization for player entities.
- Since:
- 1.15.2
-
Nested Class Summary
Nested classes/interfaces inherited from class Tracker
Tracker.BundlerSet, Tracker.CloseReason, Tracker.ScheduledPacketHandler -
Field Summary
Fields inherited from class Tracker
MINECRAFT_TICK_MULTIPLIER, modifier, pipeline, rotator, scaler, TRACKER_TICK_INTERVAL -
Constructor Summary
ConstructorsConstructorDescriptionPlayerTracker(@NotNull EntityTrackerRegistry registry, @NotNull RenderPipeline pipeline, @NotNull TrackerModifier modifier, @NotNull Consumer<EntityTracker> preUpdateConsumer) Creates a new player tracker. -
Method Summary
Methods inherited from class EntityTracker
asTrackerData, bodyRotator, canBeSaved, canBeSpawnedAt, cancelDamageTint, createHitBox, damageTint, damageTintValue, damageTintValue, despawn, hideOption, hideOption, hitbox, location, markPlayerForSpawn, markPlayerForSpawn, refresh, registry, rotation, sourceEntity, unmarkPlayerForSpawn, updateBaseEntityMethods inherited from class Tracker
animate, animate, animate, animate, animate, animate, animate, bone, bone, bone, bones, close, close, createHitBox, createNametag, displays, equals, forceUpdate, forRemoval, forRemoval, frame, handleCloseEvent, hashCode, height, hide, hitbox, isClosed, isHide, isScheduled, isSpawned, isSpawned, listenHitBox, listenHitBox, modifier, name, pause, perPlayerTick, playerCount, remove, renderer, replace, replace, rotation, rotator, scaler, scaler, schedule, show, spawn, stopAnimation, stopAnimation, stopAnimation, task, tick, tick, toString, tryUpdate, update, update, update
-
Constructor Details
-
PlayerTracker
@Internal public PlayerTracker(@NotNull @NotNull EntityTrackerRegistry registry, @NotNull @NotNull RenderPipeline pipeline, @NotNull @NotNull TrackerModifier modifier, @NotNull @NotNull Consumer<EntityTracker> preUpdateConsumer) Creates a new player tracker.- Parameters:
registry- the entity tracker registrypipeline- the render pipelinemodifier- the tracker modifierpreUpdateConsumer- a consumer to run before the first update- Since:
- 1.15.2
-