Advertisement
CaptainLepidus

loading chests

Oct 27th, 2013
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.51 KB | None | 0 0
  1.         List<String> chestx = configFile.getStringList("chest.x");
  2.         List<String> chesty = configFile.getStringList("chest.y");
  3.         List<String> chestz = configFile.getStringList("chest.z");
  4.         int cmax = chestx.size();
  5.         chest ch;
  6.         for(int i=0;i<cmax;i++) {
  7.             ch = new chest();
  8.             ch.x = Integer.parseInt(chestx.get(i));
  9.             ch.y = Integer.parseInt(chesty.get(i));
  10.             ch.z = Integer.parseInt(chestz.get(i));
  11.             chests.add(ch);
  12.         }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement