Package net.storm.sdk.game
Class GameThread
java.lang.Object
net.storm.sdk.game.GameThread
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidInvokes a runnable on the client thread.static voidinvokeAndWait(Runnable runnable) Schedules an execution on the client thread and waits until execution.static <T> TinvokeAndWait(Callable<T> callable) Schedules an execution on the client thread and waits for the result.
-
Constructor Details
-
GameThread
public GameThread()
-
-
Method Details
-
invoke
Invokes a runnable on the client thread.- Parameters:
runnable- the runnable to invoke
-
invokeAndWait
Schedules an execution on the client thread and waits for the result.- Type Parameters:
T- the type of the result- Parameters:
callable- the callable to invoke- Returns:
- the result of the callable
-
invokeAndWait
Schedules an execution on the client thread and waits until execution.- Parameters:
runnable- the runnable to invoke
-