Advertisement
Guest User

Untitled

a guest
Sep 19th, 2015
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.64 KB | None | 0 0
  1.     @Override
  2.     public boolean apply(Vector position) throws WorldEditException {
  3.         BaseBlock block = source.getBlock(position);
  4.         Vector orig = position.subtract(from);
  5.         Vector transformed = transform.apply(orig);
  6.         boolean result = destination.setBlock(transformed.add(to), block);
  7.         System.out.print(block + " - original block\n");
  8.         System.out.print(destination.getBlock(transformed.add(to)) + " - block set result\n");
  9.         return result;
  10.         /*
  11.         if (world != null && transform.getRotations() > 0)
  12.             world.rotBlock(transformed.add(to), transform.getRotations());
  13.         */
  14.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement