Class GameThread

java.lang.Object
net.storm.sdk.game.GameThread

public class GameThread extends Object
  • Constructor Details

    • GameThread

      public GameThread()
  • Method Details

    • invoke

      public static void invoke(Runnable runnable)
      Invokes a runnable on the client thread.
      Parameters:
      runnable - the runnable to invoke
    • invokeAndWait

      public static <T> T invokeAndWait(Callable<T> callable)
      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

      public static void invokeAndWait(Runnable runnable)
      Schedules an execution on the client thread and waits until execution.
      Parameters:
      runnable - the runnable to invoke