public interface ILookBehavior extends IBehavior
| Modifier and Type | Method and Description |
|---|---|
void |
updateTarget(Rotation rotation,
boolean force)
Updates the current
ILookBehavior target to target
the specified rotations on the next tick. |
onBlockInteract, onChunkEvent, onPathEvent, onPlayerDeath, onPlayerRotationMove, onPlayerSprintState, onPlayerUpdate, onPreTabComplete, onReceivePacket, onRenderPass, onSendChatMessage, onSendPacket, onTick, onWorldEventvoid updateTarget(Rotation rotation, boolean force)
ILookBehavior target to target
the specified rotations on the next tick. If force is true,
then freeLook will be overriden and angles will be set regardless.
If any sort of block interaction is required, force should be true,
otherwise, it should be false;rotation - The target rotationsforce - Whether or not to "force" the rotations