Class TimelessLib
java.lang.Object
dev.bouncingelf10.timelesslib.TimelessLib
- All Implemented Interfaces:
net.fabricmc.api.ModInitializer
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic AnimationManagerGets the server animation manager.static ServerCooldownManagerGets the server cooldown manager.static ServerCountdownManagerGets the server countdown manager.static net.minecraft.server.MinecraftServerGets the server instance.static booleanChecks if the server is initialized.voidstatic ServerSchedulerGets the server task scheduler - for one-off delays, repeating tasks, and step sequences.
-
Field Details
-
MOD_ID
- See Also:
-
LOGGER
public static final org.slf4j.Logger LOGGER
-
-
Constructor Details
-
TimelessLib
public TimelessLib()
-
-
Method Details
-
onInitialize
public void onInitialize()- Specified by:
onInitializein interfacenet.fabricmc.api.ModInitializer
-
isServerInitialized
public static boolean isServerInitialized()Checks if the server is initialized. -
getServer
Gets the server instance. Will throw an exception if the server is not initialized.- Returns:
- Server instance
- Throws:
IllegalStateException
-
scheduler
Gets the server task scheduler - for one-off delays, repeating tasks, and step sequences. Will throw an exception if the server is not initialized.- Returns:
- Server scheduler
- Throws:
IllegalStateException
-
countdowns
Gets the server countdown manager. Will throw an exception if the server is not initialized.- Returns:
- Server countdown manager
- Throws:
IllegalStateException
-
cooldowns
Gets the server cooldown manager. Will throw an exception if the server is not initialized.- Returns:
- Server cooldown manager
- Throws:
IllegalStateException
-
animations
Gets the server animation manager. Will throw an exception if the server is not initialized.- Returns:
- Server animation manager
- Throws:
IllegalStateException
-