Calls whenever the player goes into a different dimension.
Called on every (non-move) mouse input. Cancellable - setting cancel
to true will make the game not see the event.
Listener:
{
button: MouseButton,
isDown: boolean,
mouseX: number,
mouseY: number,
cancel: boolean
}
Called on every keyboard input. Cancellable - setting cancel
to true will make the game not see the event.
Listener:
{
isDown: boolean,
keyCode: KeyCode,
keyAsChar: string,
cancel: boolean
}
Called on the user leaving a world.
Called on any script being loaded.
Listener:
{
scriptName: string,
scriptVersion: string,
scriptAuthor: string
}
Called on every message received.
Listener:
{
type: MessageType;
isChat: boolean;
message: string;
sender: string;
xuid: string;
}
Called on every frame; use this for 2D rendering.
Called on every frame; use this for 3D rendering.
Called on every frame; use this for DirectX rendering.
Called on every chat message sent. Cancellable - setting cancel
to true will make the game not see the event.
Listener:
{
message: string,
cancel: boolean
}
Called whenever text input is received.
Listener:
{
characters: string
}
Called whenever you receive a title from the server.
Listener:
{
type: TitleType,
text: string
}
Called whenever the server transfers a player into another server.
Called on any script being unloaded.
Listener:
{
scriptName: string,
scriptVersion: string,
scriptAuthor: string
}
Called on every tick.
Generated using TypeDoc
Called on the game being minimized/closed.