Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Dec 23rd, 2012  |  syntax: Java  |  size: 0.54 KB  |  views: 23  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. package net.minecraft.src;
  2.  
  3. import net.minecraft.src.uq.*;
  4.  
  5. public class Loader
  6. {      
  7.         static void staticMethod() throws ClassNotFoundException, InstantiationException, IllegalAccessException {
  8.                   ((BaseMod) Loader.class.getClassLoader().loadClass("net.minecraft.src.uq.mod_uq").newInstance()).load();
  9.                 }
  10.                  
  11.                 void nonStaticMethod() throws ClassNotFoundException, InstantiationException, IllegalAccessException {
  12.                   ((BaseMod) this.getClass().getClassLoader().loadClass("net.minecraft.src.uq.mod_uq").newInstance()).load();
  13.                 }
  14.  
  15. }
clone this paste RAW Paste Data