private void writeBounds(BufferedWriter writer, Element cuboid) throws IOException { writer.write( space(3) + "\"from\": [ " + numToString(cuboid.getStartX()) + ", " + numToString(cuboid.getStartY()) + ", " + numToString(cuboid.getStartZ()) + " ], "); writer.newLine(); writer.write( space(3) + "\"to\": [ " + numToString((cuboid.getStartX() + cuboid.getWidth())) + ", " + numToString((cuboid.getStartY() + cuboid.getHeight())) + ", " + numToString((cuboid.getStartZ() + cuboid.getDepth())) + " ], "); }