Advertisement
MsGamerHD

Untitled

Aug 16th, 2016
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.85 KB | None | 0 0
  1. @SuppressWarnings("unchecked")
  2.     public static void loadSchematic(String name, Location mitte) {
  3.         InselSettingsUtils.setCanJoin(name, false);
  4.         ArrayList<String> alles = (ArrayList<String>) LostIsland.allesarraylist.clone();
  5.        
  6.         new BukkitRunnable() {
  7.             @Override
  8.             public void run() {
  9.                 for(int i = 0; i < Settings.blocksPerTick; i++){
  10.                     for (String all : alles) {
  11.                         String[] alledaten = all.split(trennungFürBlöcke);
  12.                         int xdistance = Integer.parseInt(alledaten[0]);
  13.                         int ydistance = Integer.parseInt(alledaten[1]);
  14.                         int zdistance = Integer.parseInt(alledaten[2]);
  15.  
  16.                         int type = Integer.parseInt(alledaten[3]);
  17.                         int data = Integer.parseInt(alledaten[4]);
  18.  
  19.                         int newX = (int) (mitte.getX() + xdistance);
  20.                         int newY = (int) (mitte.getY() + ydistance);
  21.                         int newZ = (int) (mitte.getZ() + zdistance);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement