Changed BreadthFirstSearch.getDirections() to return a Collection.

This commit is contained in:
sk89q 2014-03-30 14:43:47 -07:00
parent 41c4033fbb
commit 6864a0fadf
2 changed files with 3 additions and 3 deletions

View File

@ -70,7 +70,7 @@ public abstract class BreadthFirstSearch implements Operation {
*
* @return the list of directions
*/
protected List<Vector> getDirections() {
protected Collection<Vector> getDirections() {
return directions;
}

View File

@ -23,7 +23,7 @@ import com.sk89q.worldedit.Vector;
import com.sk89q.worldedit.function.RegionFunction;
import com.sk89q.worldedit.function.mask.Mask;
import java.util.List;
import java.util.Collection;
import static com.google.common.base.Preconditions.checkNotNull;
@ -51,7 +51,7 @@ public class DownwardVisitor extends RecursiveVisitor {
this.baseY = baseY;
List<Vector> directions = getDirections();
Collection<Vector> directions = getDirections();
directions.clear();
directions.add(new Vector(1, 0, 0));
directions.add(new Vector(-1, 0, 0));