Interface IStriderLoader
- All Known Implementing Classes:
StriderLoader
public interface IStriderLoader
Represents the core mod loader interface.
Provides access to loader information, mods, and game transformation utilities.
-
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.org.apache.logging.log4j.LoggerReturns the logger associated with the specified addon.Returns the side (client/server) the loader is running on.Returns the version of Minecraft the loader is running on.booleanReturns whether the loader UI is enabled.
-
Method Details
-
crash
Forces the loader to crash with a custom message.- Parameters:
msg- the crash message
-
crash
Forces the loader to crash with an exception.- Parameters:
th- the throwable causing the crash
-
crash
-
getLoaderVersion
-
getMinecraftVersion
String getMinecraftVersion()Returns the version of Minecraft the loader is running on.- Returns:
- the Minecraft version string
-
getMinecraftSide
MinecraftSide getMinecraftSide()Returns the side (client/server) the loader is running on.- Returns:
- the MinecraftSide enum value
-
isUiEnabled
boolean isUiEnabled()Returns whether the loader UI is enabled.- Returns:
- true if the UI is enabled, false otherwise
-
getClassLoader
StriderClassLoader getClassLoader()Returns the class loader used by the game.- Returns:
- the
StriderClassLoaderinstance
-
getAddons
Map<String, AddonContainer> getAddons()Returns an immutable map of all loaded addons, indexed by their addon IDs.- Returns:
- a map of mod ID to
AddonContainer
-
getLogger
Returns the logger associated with the specified addon.- Parameters:
addonId- the ID of the addon- Returns:
- the logger associated with the addon
-