client

Contains several functions to control and get information from the client

print()

Prints a message into the minecraft chat

print(message: string): void

Parameters

nametypedescription
messagestringThe message which is going to be printed

message()

Sends a message into the minecraft chat

message(message: string): void

Parameters

nametypedescription
messagestringThe message which is going to be sent in chat

set_timer_speed()

Sets the timer speed of the current game

set_timer_speed(speed: double): void

Parameters

nametypedescription
speeddoubleThe new timer speed

force_effects_redraw()

Forces blur effects to re-draw for smooth animations

force_effects_redraw(): void

This method does not have any parameters

is_key_down()

Returns if a given key is pressed

is_key_down(key: int): boolean

Parameters

nametypedescription
keyintThe key

is_mouse_down()

Returns if a given mouse button is pressed

is_mouse_down(button: int): boolean

Parameters

nametypedescription
buttonintThe button

fps()

Returns the current fps

fps(): int

This method does not have any parameters

time()

Returns the current time in millis

time(): long

This method does not have any parameters

current_kill_aura_target()

Returns the current kill-aura target id or -1 if none is present

current_kill_aura_target(): int

This method does not have any parameters

get_scaled_width()

Returns the scaled screen width

get_scaled_width(): float

This method does not have any parameters

get_scaled_height()

Returns the scaled screen height

get_scaled_height(): float

This method does not have any parameters

get_width()

Returns the screen width

get_width(): float

This method does not have any parameters

get_height()

Returns the screen height

get_height(): float

This method does not have any parameters