Class Start

java.lang.Object
io.codetoil.curved_spacetime.Start

public class Start extends Object
The common entry point every variant of Curved Spacetime starts through.

Each variant reaches this class differently but arrives at the same place. The closed-world variants call start(String[], CurvedSpacetimeLoader) directly from their Main; the Quilt variant loads this class reflectively and invokes start as a static method, which is why the signature below is part of the game provider's contract and must not change without updating CurvedSpacetimeGameProvider.

  • Method Details

    • start

      public static void start(String[] args, CurvedSpacetimeLoader loader)
      Starts the engine against the given loader.

      Construction of the engine is what drives module initialization, so this returns only once every module's main entrypoint has run.

      Parameters:
      args - the command-line arguments the variant was launched with
      loader - the loader that will resolve module entrypoints