Interface ClientLifecycleApi

All Known Implementing Classes:
ClientLifecycleApiImpl
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface ClientLifecycleApi
  • Field Details

  • Method Details

    • runOnLoadingFinished

      static void runOnLoadingFinished(Runnable work)
      Runs the provided work when client finishes loading (right before loading screen fades to title screen)
      Logs a warning and doesn't run the work when called in an environment where LoaderUtil.isDedicatedServer() returns true.
      Parameters:
      work - the runnable to run.
    • runOnLoadingFinishedImpl

      @Internal void runOnLoadingFinishedImpl(Runnable work)