EntityBodyRotator

Manages the body and head rotation logic for an entity tracker.

This class handles the complex interactions between body yaw, head yaw, and pitch, including smoothing, clamping, and player-specific behaviors.

Since

1.15.2

Types

Link copied to clipboard
Configuration data for the entity body rotator.

Functions

Link copied to clipboard
open fun lockRotation(lock: Boolean): Boolean
Locks or unlocks the rotation updates.
Link copied to clipboard
open fun reset()
Resets the rotator to default settings.
Link copied to clipboard
open fun setValue(@NotNull consumer: @NotNull Consumer<EntityBodyRotator.RotatorData>)
Configures the rotator using a consumer.