Skip to content

Tick ​

com.jsmacrosce.jsmacros.client.api.event.impl.world.EventTick

Since1.2.7Not cancellable

Fires after the key-macro check, tick synchronizer, and server-list pinger on each client tick.
It fires without a player or loaded world.

js
const listener = JsMacros.on("Tick", JavaWrapper.methodToJava(function () {
  // runs on each client tick
}));  
// later
JsMacros.off(listener);

Constructors ​

new EventTick ​

new EventTick()#
Initializes this event with the client core; it does not fire the event.

Methods ​

toString ​

toString(): String#
Returns the event name followed by :{}.
Returns: the event name followed by :{}