Class AstralServer

java.lang.Object
dev.jaxydog.astral.AstralServer
All Implemented Interfaces:
net.fabricmc.api.DedicatedServerModInitializer

public final class AstralServer extends Object implements net.fabricmc.api.DedicatedServerModInitializer
The mod's server entrypoint.

This class is initialized on the server.

It should be assumed that prior to the invocation of onInitializeServer(), 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

    • AstralServer

      public AstralServer()
  • 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 AstralServer has been initialized, this will return true.

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

      public void onInitializeServer()
      Specified by:
      onInitializeServer in interface net.fabricmc.api.DedicatedServerModInitializer