events

Events that will be called on each module.

onAntiCheatFlag

void onAntiCheatFlag(String flag, Entity entity)

This event will be called when AntiCheat flags a player.

onAttackEntity

boolean onAttackEntity(Entity target, Entity attacker)

This event will be called when the player attacks an entity.

onLoad

void onLoad()

This event will be called when the script is loaded. Register buttons/sliders here.

onChat

boolean onChat(String msg)

This event will be called whenever a message is sent in chat.

onDisconnect

void onDisconnect()

This event will be called whenever the client disconnects from a server.

onEnable

This event will be called whenever the script is enabled.

onDisable

This event will be called whenever the script is disabled.

onKeyPress

This event will be called when key is pressed.

onPacketSent

This event will be called before a packet gets sent to the server.

onPacketReceived

This event will be called before a packet gets processed by the client.

onGuiUpdate

This event will be called when a GUI updates.

getRotations

This event is called when minecraft sets your yaw and pitch for movement calculations. Return null to return the vanilla yaw and pitch. Calling client.enableMovementFix() on this event will enable movement correction.

onPreUpdate

This event will be called at the beginning of every update to the local player.

onPrePlayerInput

This event will be called before the client processes player inputs.

property
type

forward

float

strafe

float

jump

boolean

sneak

boolean

onPostPlayerInput

This event will be called after the client processes player inputs.

onPlayerMove

This event will be called before the local player is moved.

onPreMotion

This event will be called before player updates are sent to the server.

property
type

x

double

y

double

z

double

yaw

float

pitch

float

onGround

boolean

isSprinting

boolean

isSneaking

boolean

onPostMotion

This event will be called at the end of every update to the local player.

onRenderTick

This event is called every time the HUD renders.

onRenderWorld

This event is called every time the world renders.

onWorldJoin

This event is called whenever an entity spawns in.

onMouse

This event is called whenever a button on the mouse is pressed.

Last updated