catch (IOException e) { e.printStackTrace(); }
}
public RenderedImage getMapImage() throws IOException
{
CuboidRegion cube = getMapCuboid();
if (cube == null) throw new IOException("No start regions defined.");
Location min = cube.getMinimumPoint(),
max = cube.getMaximumPoint();
return MapImageGenerator.generateFromWorld(getWorld(),
min.getBlockX(), max.getBlockX(), min.getBlockZ(), max.getBlockZ());
}