public class ModClassLoader
extends java.net.URLClassLoader
Modifier and Type | Field and Description |
---|---|
private net.minecraft.launchwrapper.LaunchClassLoader |
mainClassLoader |
(package private) java.util.List<java.net.URL> |
parentURLs |
private java.util.List<java.io.File> |
sources |
private static java.util.List<java.lang.String> |
STANDARD_LIBRARIES |
Constructor and Description |
---|
ModClassLoader(java.lang.ClassLoader parent) |
Modifier and Type | Method and Description |
---|---|
void |
addFile(java.io.File modFile) |
ModAPITransformer |
addModAPITransformer(ASMDataTable dataTable) |
void |
clearNegativeCacheFor(java.util.Set<java.lang.String> classList) |
boolean |
containsSource(java.io.File source) |
java.util.List<java.lang.String> |
getDefaultLibraries() |
java.io.File[] |
getParentSources() |
boolean |
isDefaultLibrary(java.io.File file) |
java.lang.Class<?> |
loadClass(java.lang.String name) |
addURL, close, definePackage, findClass, findResource, findResources, getPermissions, getResourceAsStream, getURLs, newInstance, newInstance
clearAssertionStatus, defineClass, defineClass, defineClass, defineClass, definePackage, findLibrary, findLoadedClass, findSystemClass, getClassLoadingLock, getPackage, getPackages, getParent, getResource, getResources, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, loadClass, registerAsParallelCapable, resolveClass, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus, setSigners
private static final java.util.List<java.lang.String> STANDARD_LIBRARIES
private net.minecraft.launchwrapper.LaunchClassLoader mainClassLoader
private java.util.List<java.io.File> sources
java.util.List<java.net.URL> parentURLs
public void addFile(java.io.File modFile) throws java.net.MalformedURLException
java.net.MalformedURLException
public java.lang.Class<?> loadClass(java.lang.String name) throws java.lang.ClassNotFoundException
loadClass
in class java.lang.ClassLoader
java.lang.ClassNotFoundException
public java.io.File[] getParentSources()
public java.util.List<java.lang.String> getDefaultLibraries()
public boolean isDefaultLibrary(java.io.File file)
public void clearNegativeCacheFor(java.util.Set<java.lang.String> classList)
public ModAPITransformer addModAPITransformer(ASMDataTable dataTable)
public boolean containsSource(java.io.File source)