Structs§
- Knockback
Event - An event sent by the server that sets or adds to our velocity. Usually
KnockbackKind::Set
is used for normal knockback andKnockbackKind::Add
is used for explosions, but some servers (notably Hypixel) use explosions for knockback. - Last
Sent Input - Last
Sent Look Direction - A component that contains the look direction that was last sent over the network.
- Move
Events Set - Physics
State - Component for entities that can move and sprint. Usually only in
LocalEntity
s. - Player
Move Plugin - Start
Sprint Event - An event sent when the client starts sprinting. This does not get sent for non-local entities.
- Start
Walk Event - An event sent when the client starts walking. This does not get sent for non-local entities.
Enums§
- Knockback
Type - Move
Player Error - Sprint
Direction - The directions that we can sprint in. It’s a subset of
WalkDirection
. - Walk
Direction
Functions§
- handle_
knockback - handle_
sprint - The system that makes the player start sprinting when they receive a
StartSprintEvent
. - handle_
walk - The system that makes the player start walking when they receive a
StartWalkEvent
. - local_
player_ ai_ step - Makes the bot do one physics tick. Note that this is already handled automatically by the client.
- send_
player_ input_ packet - send_
position