Package dev.jaxydog.astral
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanReturns whether the mod has finished initializing.void
-
Constructor Details
-
AstralServer
public AstralServer()
-
-
Method Details
-
hasInitialized
public static boolean hasInitialized()Returns whether the mod has finished initializing.This method will always return
falseduring the registration process.If an instance of
AstralServerhas been initialized, this will returntrue.- Returns:
- If the mod is initialized.
- Since:
- 2.0.0
-
onInitializeServer
public void onInitializeServer()- Specified by:
onInitializeServerin interfacenet.fabricmc.api.DedicatedServerModInitializer
-