package me.jacobcrofts.simplestructureloader.util;

import org.bukkit.Location;

public class Selection {
	
	private Location left;
	private Location right;
	
	public Selection() {
		
	}
	
	public Location getLeftClickLocation() {
		return this.left;
	}
	
	public Location getRightClickLocation() {
		return this.right;
	}
	
	public void setLeftClickLocation(Location location) {
		this.left = location;
	}
	
	public void setRightClickLocation(Location location) {
		this.right = location;
	}

}

@@ -56,27 +56,132 @@
 ort 
-org.bukkit.Location
+java.util.HashMap;%0Aimport java.util.Map;%0A%0Aimport org.bukkit.Location;%0Aimport org.bukkit.World;%0Aimport org.bukkit.block.Block
 ;%0A%0Ap
@@ -559,24 +559,24 @@
 location) %7B%0A
-
 %09%09this.right
@@ -590,12 +590,784 @@
 tion;%0A%09%7D
+%0A%09%0A%09public Map%3CLocation, Block%3E getLocationsAndBlocks() %7B%0A%09%09Map%3CLocation, Block%3E blockData = new HashMap%3CLocation, Block%3E();%0A%09%09%0A%09%09int xMin = Math.min(left.getBlockX(), right.getBlockX());%0A%09%09int xMax = Math.max(left.getBlockX(), right.getBlockX());%0A%09%09int yMin = Math.min(left.getBlockY(), right.getBlockY());%0A%09%09int yMax = Math.max(left.getBlockY(), right.getBlockY());%0A%09%09int zMin = Math.min(left.getBlockZ(), right.getBlockZ());%0A%09%09int zMax = Math.max(left.getBlockZ(), right.getBlockZ());%0A%09%09%0A%09%09World world = left.getWorld();%0A%09%09%0A%09%09for (int x = xMin; x %3C= xMax; x++) %7B%0A%09%09%09for (int y = yMin; y %3C= yMax; y++) %7B%0A%09%09%09%09for (int z = zMin; z %3C= zMax; z++) %7B%0A%09%09%09%09%09Location l = new Location(world, x, y, z);%0A%09%09%09%09%09blockData.put(l, l.getBlock());%0A%09%09%09%09%7D%0A%09%09%09%7D%0A%09%09%7D%0A%09%09%0A%09%09return blockData;%0A%09%7D
 %0A%0A%7D%0A

Add feature: Selection#getLocationsAndBlocks