Class AstralClient

java.lang.Object
dev.jaxydog.astral.AstralClient
All Implemented Interfaces:
net.fabricmc.api.ClientModInitializer

@Environment(CLIENT) public final class AstralClient extends Object implements net.fabricmc.api.ClientModInitializer
The mod's client entrypoint.

This class is initialized on the client, never the server.

It should be assumed that prior to the invocation of onInitializeClient(), nothing has been properly loaded. Once the mod has finished loading, the provided hasInitialized() method will always return true.

Please modify with a healthy dose of caution!

Since:
1.0.0
See Also:
  • Constructor Details

    • AstralClient

      public AstralClient()
  • Method Details

    • hasInitialized

      public static boolean hasInitialized()
      Returns whether the mod has finished initializing.

      This method will always return false during the registration process.

      If an instance of AstralClient has been initialized, this will return true.

      Returns:
      If the mod is initialized.
      Since:
      2.0.0
    • onInitializeClient

      public void onInitializeClient()
      Specified by:
      onInitializeClient in interface net.fabricmc.api.ClientModInitializer