API reference / @jsprismarine/client / LookBehavior
Class: LookBehavior
Defined in: client/src/bot/behavior/LookBehavior.ts:16
Turns the head without moving.
Separate from walking because it loads a server differently: a rotation is a move packet that changes nothing about which chunks or entities a player can see, so it exercises the broadcast path without touching the streaming one. Running it alone is how you find out how much of a server's cost is simply relaying movement.
Implements
Constructors
Constructor
new LookBehavior():
LookBehavior
Returns
LookBehavior
Properties
name
readonlyname:"look"='look'
Defined in: client/src/bot/behavior/LookBehavior.ts:17
Implementation of
Methods
tick()
tick(
context):Promise<void>
Defined in: client/src/bot/behavior/LookBehavior.ts:19
Called on every tick of the bot that owns it.
Parameters
context
Returns
Promise<void>