This commit is contained in:
Leijurv 2018-11-23 10:58:23 -08:00
parent b705279153
commit 84cd4b1acb
No known key found for this signature in database
GPG Key ID: 44A3EA646EADAC6A

View File

@ -17,10 +17,7 @@
package baritone.api.pathing.goals; package baritone.api.pathing.goals;
import net.minecraft.util.math.BlockPos;
import java.util.Arrays; import java.util.Arrays;
import java.util.Collection;
/** /**
* A composite of many goals, any one of which satisfies the composite. * A composite of many goals, any one of which satisfies the composite.
@ -40,14 +37,6 @@ public class GoalComposite implements Goal {
this.goals = goals; this.goals = goals;
} }
public GoalComposite(BlockPos... blocks) {
this(Arrays.asList(blocks));
}
public GoalComposite(Collection<BlockPos> blocks) {
this(blocks.stream().map(GoalBlock::new).toArray(Goal[]::new));
}
@Override @Override
public boolean isInGoal(int x, int y, int z) { public boolean isInGoal(int x, int y, int z) {
for (Goal goal : goals) { for (Goal goal : goals) {