Class ClientLifecycleHooks

java.lang.Object
net.neoforged.neoforge.client.ClientLifecycleHooks

@Internal public class ClientLifecycleHooks extends Object
  • Constructor Details

    • ClientLifecycleHooks

      public ClientLifecycleHooks()
  • Method Details

    • handleClientStarted

      public static void handleClientStarted(Minecraft minecraft)
      Emits the ClientStartedEvent right before the client ticks for the first time.
    • handleClientStopping

      public static void handleClientStopping(Minecraft minecraft)
      Emits the ClientStoppingEvent when the client is about to free all of its resources.
    • handleClientStopped

      public static void handleClientStopped(Minecraft minecraft)
      Emits the ClientStoppedEvent right after the client has freed all of its resources and is about to shut down the process.