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
void onEnable()
This event will be called whenever the script is enabled.
onDisable
void onDisable()
This event will be called whenever the script is disabled.
onKeyPress
boolean onKeyPress(char key, int code)
This event will be called when key is pressed.
onPacketSent
boolean onPacketSent(CPacket packet)
This event will be called before a packet gets sent to the server.
onPacketReceived
boolean onPacketReceived(SPacket packet)
This event will be called before a packet gets processed by the client.
onGuiUpdate
void onGuiUpdate(String name, boolean opened)
This event will be called when a GUI updates.
onPreUpdate
void onPreUpdate()
This event will be called at the beginning of every update to the local player.
onPrePlayerInput
void onPrePlayerInput(MovementInput input)
This event will be called before the client processes player inputs.
forward
float
strafe
float
jump
boolean
sneak
boolean
onPostPlayerInput
void onPostPlayerInput()
This event will be called after the client processes player inputs.
onPlayerMove
void onPlayerMove(Vec3 motion)
This event will be called before the local player is moved.
onPreMotion
void onPreMotion(PlayerState state)
This event will be called before player updates are sent to the server.
x
double
y
double
z
double
yaw
float
pitch
float
onGround
boolean
isSprinting
boolean
isSneaking
boolean
onPostMotion
void onPostMotion()
This event will be called at the end of every update to the local player.
onRenderTick
void onRenderTick(float partialTicks)
This event is called every time the HUD renders.
onRenderWorld
void onRenderWorld(float partialTicks)
This event is called every time the world renders.
onWorldJoin
void onWorldJoin(Entity entity)
This event is called whenever an entity spawns in.
onMouse
boolean onMouse(int button, boolean state)
This event is called whenever a button on the mouse is pressed.
Last updated