Class PlayerTracker

All Implemented Interfaces:
AutoCloseable

public final class PlayerTracker extends EntityTracker
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
  • 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 registry
      pipeline - the render pipeline
      modifier - the tracker modifier
      preUpdateConsumer - a consumer to run before the first update
      Since:
      1.15.2