Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- List<String> chestx = configFile.getStringList("chest.x");
- List<String> chesty = configFile.getStringList("chest.y");
- List<String> chestz = configFile.getStringList("chest.z");
- int cmax = chestx.size();
- chest ch;
- for(int i=0;i<cmax;i++) {
- ch = new chest();
- ch.x = Integer.parseInt(chestx.get(i));
- ch.y = Integer.parseInt(chesty.get(i));
- ch.z = Integer.parseInt(chestz.get(i));
- chests.add(ch);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement