Class StriderLoader
java.lang.Object
dev.nozyx.strider.loader.impl.StriderLoader
- All Implemented Interfaces:
IStriderLoader
-
Method Summary
Modifier and TypeMethodDescriptionvoidForces the loader to crash with a custom message.voidForces the loader to crash with a custom message and an exception.voidForces the loader to crash with an exception.Returns an immutable map of all loaded addons, indexed by their addon IDs.Returns the class loader used by the game.Returns the version of StriderLoader.Returns the side (client/server) the loader is running on.Returns the version of Minecraft the loader is running on.static voidbooleanReturns whether the loader UI is enabled.
-
Method Details
-
handleReadyEvent
public static void handleReadyEvent() -
getAddons
Description copied from interface:IStriderLoaderReturns an immutable map of all loaded addons, indexed by their addon IDs.- Specified by:
getAddonsin interfaceIStriderLoader- Returns:
- a map of mod ID to
AddonContainer
-
crash
Description copied from interface:IStriderLoaderForces the loader to crash with a custom message.- Specified by:
crashin interfaceIStriderLoader- Parameters:
msg- the crash message
-
crash
Description copied from interface:IStriderLoaderForces the loader to crash with a custom message and an exception.- Specified by:
crashin interfaceIStriderLoader- Parameters:
msg- the crash messageth- the throwable causing the crash
-
crash
Description copied from interface:IStriderLoaderForces the loader to crash with an exception.- Specified by:
crashin interfaceIStriderLoader- Parameters:
th- the throwable causing the crash
-
getLoaderVersion
Description copied from interface:IStriderLoaderReturns the version of StriderLoader.- Specified by:
getLoaderVersionin interfaceIStriderLoader- Returns:
- the loader version string
-
getMinecraftVersion
Description copied from interface:IStriderLoaderReturns the version of Minecraft the loader is running on.- Specified by:
getMinecraftVersionin interfaceIStriderLoader- Returns:
- the Minecraft version string
-
getMinecraftSide
Description copied from interface:IStriderLoaderReturns the side (client/server) the loader is running on.- Specified by:
getMinecraftSidein interfaceIStriderLoader- Returns:
- the MinecraftSide enum value
-
isUiEnabled
public boolean isUiEnabled()Description copied from interface:IStriderLoaderReturns whether the loader UI is enabled.- Specified by:
isUiEnabledin interfaceIStriderLoader- Returns:
- true if the UI is enabled, false otherwise
-
getClassLoader
Description copied from interface:IStriderLoaderReturns the class loader used by the game.- Specified by:
getClassLoaderin interfaceIStriderLoader- Returns:
- the
StriderClassLoaderinstance
-