Advertisement
PaleoCrafter

Untitled

May 30th, 2014
232
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.36 KB | None | 0 0
  1. try
  2. {
  3.     Class<?> clazz = Class.forName("tconstruct.util.player.TPlayerStats");
  4.     Method m = clazz.getDeclaredMethod("get", EntityPlayer.class);
  5.     Object result = m.invoke(null, player);
  6.     Field f = clazz.getDeclaredField("knapsack");
  7.     IInventory knapsack = (IInventory)f.get(result);
  8. } catch(ReflectiveOperationException e) {
  9.     e.printStackTrace();
  10. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement