Class ClientLifecycleHooks

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

@Internal public class ClientLifecycleHooks extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    handleClientStarted(net.minecraft.client.Minecraft minecraft)
    Emits the ClientStartedEvent right before the client ticks for the first time.
    static void
    handleClientStopped(net.minecraft.client.Minecraft minecraft)
    Emits the ClientStoppedEvent right after the client has freed all of its resources and is about to shut down the process.
    static void
    handleClientStopping(net.minecraft.client.Minecraft minecraft)
    Emits the ClientStoppingEvent when the client is about to free all of its resources.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ClientLifecycleHooks

      public ClientLifecycleHooks()
  • Method Details

    • handleClientStarted

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

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

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