Package dev.jaxydog.astral
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanReturns whether the mod has finished initializing.void
-
Constructor Details
-
AstralClient
public AstralClient()
-
-
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
AstralClienthas been initialized, this will returntrue.- Returns:
- If the mod is initialized.
- Since:
- 2.0.0
-
onInitializeClient
public void onInitializeClient()- Specified by:
onInitializeClientin interfacenet.fabricmc.api.ClientModInitializer
-