Advertisement
Guest User

Untitled

a guest
Dec 23rd, 2012
45
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.54 KB | None | 0 0
  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. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement