Events
Event callbacks that are triggered during various game actions and states.
getRotations
Called when Minecraft sets your yaw and pitch for movement calculations.
java
float[] getRotations(float lastYaw, float lastPitch)onAntiCheatFlag
Called when the AntiCheat module flags a player.
java
void onAntiCheatFlag(String flag, Entity entity)onChat
Called whenever a message is sent in chat, return false to cancel.
java
boolean onChat(String msg, int type)onDisable
Called whenever the script is disabled.
java
void onDisable()onEnable
Called whenever the script is enabled.
java
void onEnable()onGuiUpdate
Called when a GUI updates.
java
void onGuiUpdate(String name, boolean opened)onIRCMessage
Called when you receive an IRC message, return false to cancel printing.
java
boolean onIRCMessage(String message)onKey
Called when a key is pressed.
java
void onKey(String keyName, int keyCode, boolean state, boolean inGui)onLoad
Called when the script is loaded. Register buttons/sliders here.
java
void onLoad()onLocRaw
Calls on /locraw (auto-runs on world join), gives raw response as string.
java
void onLocRaw(String locraw)onMouse
Called whenever a button on the mouse is pressed, return false to cancel.
java
boolean onMouse(int button, boolean state)onPacketReceived
Called before a packet gets processed by the client, return false to cancel.
java
boolean onPacketReceived(SPacket packet)onPacketSent
Called before a packet gets sent to the server, return false to cancel.
java
boolean onPacketSent(CPacket packet)onPostMotion
Called after updates sent to server.
java
void onPostMotion()onPostPlayerInput
Called after the client processes player inputs.
java
void onPostPlayerInput()onPreMotion
Called before player updates are sent to the server.
INFO
See also: PlayerState for PlayerState properties.
java
void onPreMotion(PlayerState state)onPreUpdate
Called at the beginning of every update to the local player.
java
void onPreUpdate()onRenderTick
Called every time the HUD renders.
java
void onRenderTick(float partialTicks)onRenderWorld
Called every time the world renders.
java
void onRenderWorld(float partialTicks)onWorldJoin
Called whenever an entity spawns in.
java
void onWorldJoin(Entity entity)