unused
This commit is contained in:
parent
b705279153
commit
84cd4b1acb
@ -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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user