Class StriderLoader

java.lang.Object
dev.nozyx.strider.loader.impl.StriderLoader
All Implemented Interfaces:
IStriderLoader

@Internal public final class StriderLoader extends Object implements IStriderLoader
  • Method Details

    • handleReadyEvent

      public static void handleReadyEvent()
    • crash

      public void crash(String msg)
      Description copied from interface: IStriderLoader
      Forces the loader to crash with a custom message.
      Specified by:
      crash in interface IStriderLoader
      Parameters:
      msg - the crash message
    • crash

      public void crash(String msg, Throwable th)
      Description copied from interface: IStriderLoader
      Forces the loader to crash with a custom message and an exception.
      Specified by:
      crash in interface IStriderLoader
      Parameters:
      msg - the crash message
      th - the throwable causing the crash
    • crash

      public void crash(Throwable th)
      Description copied from interface: IStriderLoader
      Forces the loader to crash with an exception.
      Specified by:
      crash in interface IStriderLoader
      Parameters:
      th - the throwable causing the crash
    • getLoaderVersion

      public String getLoaderVersion()
      Description copied from interface: IStriderLoader
      Returns the version of StriderLoader.
      Specified by:
      getLoaderVersion in interface IStriderLoader
      Returns:
      the loader version string
    • getMinecraftVersion

      public String getMinecraftVersion()
      Description copied from interface: IStriderLoader
      Returns the version of Minecraft the loader is running on.
      Specified by:
      getMinecraftVersion in interface IStriderLoader
      Returns:
      the Minecraft version string
    • getMinecraftSide

      public MinecraftSide getMinecraftSide()
      Description copied from interface: IStriderLoader
      Returns the side (client/server) the loader is running on.
      Specified by:
      getMinecraftSide in interface IStriderLoader
      Returns:
      the MinecraftSide enum value
    • isUiEnabled

      public boolean isUiEnabled()
      Description copied from interface: IStriderLoader
      Returns whether the loader UI is enabled.
      Specified by:
      isUiEnabled in interface IStriderLoader
      Returns:
      true if the UI is enabled, false otherwise
    • getClassLoader

      public StriderClassLoader getClassLoader()
      Description copied from interface: IStriderLoader
      Returns the class loader used by the game.
      Specified by:
      getClassLoader in interface IStriderLoader
      Returns:
      the StriderClassLoader instance
    • getAddons

      public Map<String, AddonContainer> getAddons()
      Description copied from interface: IStriderLoader
      Returns an immutable map of all loaded addons, indexed by their addon IDs.
      Specified by:
      getAddons in interface IStriderLoader
      Returns:
      a map of mod ID to AddonContainer
    • getLogger

      public org.apache.logging.log4j.Logger getLogger(String addonId)
      Description copied from interface: IStriderLoader
      Returns the logger associated with the specified addon.
      Specified by:
      getLogger in interface IStriderLoader
      Parameters:
      addonId - the ID of the addon
      Returns:
      the logger associated with the addon