Advertisement
Guest User

Untitled

a guest
Jul 13th, 2012
608
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. @Override
  2. public void modsLoaded() {
  3. try {
  4. Class<?> equivexmaps = Class.forName("ee.EEMaps");
  5. Method addEMC = equivexmaps.getMethod("addEMC", int.class, int.class, int.class);
  6. Method addMeta = equivexmaps.getMethod("addMeta", int.class, int.class);
  7.  
  8. // for each EMC value
  9. addEMC.invoke(null, yourBlock.blockID, yourMetadataValue, yourEMCValue);
  10.  
  11. // for each block
  12. addMeta.invoke(null, yourBlock.blockID, yourBlocksMaximumMetadataValue);
  13. } catch (Exception ex) {
  14. }
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement