Advertisement
JavaMatrix

Untitled

Mar 3rd, 2015
818
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.40 KB | None | 0 0
  1. // Be sure not to use getFields as that only fetches public fields.
  2. Field[] fieldList = EntityFireworkRocket.class.getDeclaredFields();
  3. for (int i = 0; i < fieldList.length; i++) {
  4.     System.out.println("[" + i + "] " + fieldList[ i ]);
  5. }
  6. // This line is optional, but it makes it easier to find the field indexes
  7. // by stopping Minecraft once they are printed.
  8. FMLCommonHandler.instance().exitJava(0, true);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement