Package baritone.api.behavior
Interface ILookBehavior
- All Superinterfaces:
AbstractGameEventListener,IBehavior,IGameEventListener
- Since:
- 9/23/2018
- Author:
- Brady
-
Method Summary
Modifier and TypeMethodDescriptionThe aim processor instance for thisILookBehavior, which is responsible for applying additional, deterministic transformations to the target rotation set byupdateTarget(baritone.api.utils.Rotation, boolean).voidupdateTarget(Rotation rotation, boolean blockInteract) Updates the currentILookBehaviortarget to target the specified rotations on the next tick.Methods inherited from interface baritone.api.event.listener.AbstractGameEventListener
onBlockChange, onBlockInteract, onChunkEvent, onPathEvent, onPlayerDeath, onPlayerRotationMove, onPlayerSprintState, onPlayerUpdate, onPostTick, onPreTabComplete, onReceivePacket, onRenderPass, onSendChatMessage, onSendPacket, onTick, onWorldEvent
-
Method Details
-
updateTarget
Updates the currentILookBehaviortarget to target the specified rotations on the next tick. If any sort of block interaction is required,blockInteractshould betrue. It is not guaranteed that the rotations set by the caller will be the exact rotations expressed by the client (This is due to settings likeSettings.randomLooking). If the rotations produced by this behavior are required, then theaim processorshould be used.- Parameters:
rotation- The target rotationsblockInteract- Whether the target rotations are needed for a block interaction
-
getAimProcessor
The aim processor instance for thisILookBehavior, which is responsible for applying additional, deterministic transformations to the target rotation set byupdateTarget(baritone.api.utils.Rotation, boolean).- Returns:
- The aim processor
- See Also:
-