Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @SuppressWarnings("unchecked")
- public static void loadSchematic(String name, Location mitte) {
- InselSettingsUtils.setCanJoin(name, false);
- ArrayList<String> alles = (ArrayList<String>) LostIsland.allesarraylist.clone();
- new BukkitRunnable() {
- @Override
- public void run() {
- for(int i = 0; i < Settings.blocksPerTick; i++){
- for (String all : alles) {
- String[] alledaten = all.split(trennungFürBlöcke);
- int xdistance = Integer.parseInt(alledaten[0]);
- int ydistance = Integer.parseInt(alledaten[1]);
- int zdistance = Integer.parseInt(alledaten[2]);
- int type = Integer.parseInt(alledaten[3]);
- int data = Integer.parseInt(alledaten[4]);
- int newX = (int) (mitte.getX() + xdistance);
- int newY = (int) (mitte.getY() + ydistance);
- int newZ = (int) (mitte.getZ() + zdistance);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement