cpw.mods.fml.common

## Class ModClassLoader

- java.lang.Object
- - java.lang.ClassLoader
  - - java.security.SecureClassLoader
    - - java.net.URLClassLoader
      - - cpw.mods.fml.common.ModClassLoader

- All Implemented Interfaces:
    Closeable, AutoCloseable

      public class ModClassLoader
      extends URLClassLoader

  A simple delegating class loader used to load mods into the system
  Author:
    cpw

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `ModClassLoader(ClassLoader parent)`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `addFile(File modFile)`
    `ModAPITransformer` | `addModAPITransformer(ASMDataTable dataTable)`
    `void` | `clearNegativeCacheFor(Set<String> classList)`
    `List<String>` | `getDefaultLibraries()`
    `File[]` | `getParentSources()`
    `Class<? extends BaseModProxy>` | `loadBaseModClass(String modClazzName)`
    `Class<?>` | `loadClass(String name)`

    - ### Methods inherited from class java.net.URLClassLoader

      `close, findResource, findResources, getResourceAsStream, getURLs, newInstance, newInstance`

    - ### Methods inherited from class java.lang.ClassLoader

      `clearAssertionStatus, getParent, getResource, getResources, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus`

    - ### Methods inherited from class java.lang.Object

      `equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### ModClassLoader

          public ModClassLoader(ClassLoader parent)

  - ### Method Detail

    - #### addFile

          public void addFile(File modFile)
                       throws MalformedURLException

      Throws:
        `MalformedURLException`

    - #### loadClass

          public Class<?> loadClass(String name)
                             throws ClassNotFoundException

      Overrides:
        `loadClass` in class `ClassLoader`
      Throws:
        `ClassNotFoundException`

    - #### getParentSources

          public File[] getParentSources()

    - #### getDefaultLibraries

          public List<String> getDefaultLibraries()

    - #### loadBaseModClass

          public Class<? extends BaseModProxy> loadBaseModClass(String modClazzName)
                                                         throws Exception

      Throws:
        `Exception`

    - #### clearNegativeCacheFor

          public void clearNegativeCacheFor(Set<String> classList)

    - #### addModAPITransformer

          public ModAPITransformer addModAPITransformer(ASMDataTable dataTable)