Package dev.bouncingelf10.timelesslib
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 net.minecraft.server.MinecraftServerGets the server instance.static AnimationManagerGets the server animation manager.static ServerCooldownManager<net.minecraft.server.MinecraftServer> Gets the server cooldown manager.static CountdownManager<net.minecraft.server.MinecraftServer> Gets the server countdown manager.static Scheduler<net.minecraft.server.MinecraftServer> Gets the server scheduler.static booleanChecks if the server is initialized.void
-
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
-
getServerScheduler
public static Scheduler<net.minecraft.server.MinecraftServer> getServerScheduler() throws IllegalStateExceptionGets the server scheduler. Will throw an exception if the server is not initialized.- Returns:
- Server scheduler
- Throws:
IllegalStateException
-
getServerCountdownManager
public static CountdownManager<net.minecraft.server.MinecraftServer> getServerCountdownManager() throws IllegalStateExceptionGets the server countdown manager. Will throw an exception if the server is not initialized.- Returns:
- Server countdown manager
- Throws:
IllegalStateException
-
getServerCooldownManager
public static ServerCooldownManager<net.minecraft.server.MinecraftServer> getServerCooldownManager() throws IllegalStateExceptionGets the server cooldown manager. Will throw an exception if the server is not initialized.- Returns:
- Server cooldown manager
- Throws:
IllegalStateException
-
getServerAnimationManager
Gets the server animation manager. Will throw an exception if the server is not initialized.- Returns:
- Server animation manager
- Throws:
IllegalStateException
-