clientThread

Methods
3
Fields
None

Getting one

clientThread

Methods

MethodReturnsDescription
invoke((() -> ()) | (() -> boolean?))()Run r now (plugin code is on the client thread); if it returns false, run it again at every later invoke point until it returns anythin…
invokeLater((() -> ()) | (() -> boolean?))()Run r at the next invoke point (right after the cycle's GameTick), even when already on the client thread; if it returns false, again…
invokeAtTickEnd(() -> ())()Run r once at the end of this cycle, after every event of it and before PostClientTick.

Method details

invoke

invoke: (ClientThread, (() -> ()) | (() -> boolean?)) -> ()

Run r now (plugin code is on the client thread); if it returns false, run it again at every later invoke point until it returns anything else. Called from the main chunk (off the client thread) it is queued, as invokeLater. An error in r run now is raised here.

invokeLater

invokeLater: (ClientThread, (() -> ()) | (() -> boolean?)) -> ()

Run r at the next invoke point (right after the cycle's GameTick), even when already on the client thread; if it returns false, again at each later point until it returns anything else. A job queued by a job runs in the same drain unless the queuing job was the last one (so invokeLater from inside the last job waits for the next invoke point).

invokeAtTickEnd

invokeAtTickEnd: (ClientThread, () -> ()) -> ()

Run r once at the end of this cycle, after every event of it and before PostClientTick.