Interface Engine

    • Method Detail

      • game

        Game game()
        Gets the Game that launched this engine;
        Returns:
        The game
      • causeStackManager

        CauseStackManager causeStackManager()
        Gets the CauseStackManager for handling the current event cause stack and context information.
        Returns:
        The cause stack manager
      • scheduler

        Scheduler scheduler()
        Gets the Scheduler used to schedule sync tasks on this Engine.
        Returns:
        The sync scheduler
      • onMainThread

        boolean onMainThread()
        Checks if the current thread is the main thread of the engine.
        Returns:
        true if main thread, false if not
      • reloadResources

        java.util.concurrent.CompletableFuture<java.lang.Void> reloadResources()
        Rediscovers all resources within all pack's contents.

        On the server, the future will always be completed.

        Returns:
        A future that completes when reloading is complete