Class StriderClassLoader

All Implemented Interfaces:
Closeable, AutoCloseable

public final class StriderClassLoader extends URLClassLoader
A class loader used by StriderLoader to load and transform game classes.

Classes outside the Minecraft and Mojang packages use the standard parent-first class-loading strategy. Classes belonging to net.minecraft or com.mojang are loaded using a child-first strategy so they can be transformed before being defined by the JVM.

Classes loaded by this class loader can be processed by registered class transformers before they are defined by the JVM. Transformers are applied in the order in which they were registered.

  • Constructor Details

    • StriderClassLoader

      @Internal public StriderClassLoader()
      Creates a new StriderClassLoader using the current JVM classpath as its initial classpath.
    • StriderClassLoader

      @Internal public StriderClassLoader(URL[] urls, ClassLoader parent)
      Creates a new StriderClassLoader with the specified classpath and parent class loader.
      Parameters:
      urls - the URLs from which classes and resources can be loaded
      parent - the parent class loader used for class loading
  • Method Details