This commit is contained in:
Brady
2018-10-30 20:30:44 -05:00
parent f76736a378
commit 9642950b54
6 changed files with 23 additions and 11 deletions
@@ -15,7 +15,10 @@
* along with Baritone. If not, see <https://www.gnu.org/licenses/>.
*/
package tenor;
package tenor.game;
import tenor.ISingularChildTaskRelationship;
import tenor.SingularTaskLeaf;
public class ActuallyCraftTask extends SingularTaskLeaf {
@@ -15,7 +15,9 @@
* along with Baritone. If not, see <https://www.gnu.org/licenses/>.
*/
package tenor;
package tenor.game;
import tenor.*;
public class AquireCraftingItems extends QuantizedTaskNode implements IClaimProvider {
@@ -15,7 +15,9 @@
* along with Baritone. If not, see <https://www.gnu.org/licenses/>.
*/
package tenor;
package tenor.game;
import tenor.*;
import java.util.HashMap;
import java.util.List;
@@ -56,11 +58,6 @@ public class AquireItemTask extends QuantizedTaskNode implements IClaimProvider,
return x -> ScarceParentPriorityAllocator.priorityAllocation(x, parentTasks()).totalPriority;
}
@Override
public IQuantityRelationship cost() {
return IQuantizedDependentCostCalculator.super.cost(); // oppa
}
@Override
public double priorityAllocatedTo(IQuantizedParentTaskRelationship child, int quantity) {
// how much of our priority would go to this child if it could provide us with quantity of the item we need
@@ -15,9 +15,13 @@
* along with Baritone. If not, see <https://www.gnu.org/licenses/>.
*/
package tenor;
package tenor.game;
import net.minecraft.util.Tuple;
import tenor.DependencyType;
import tenor.IQuantityRelationship;
import tenor.IQuantizedParentTaskRelationship;
import tenor.QuantizedTaskNode;
import java.util.List;
@@ -15,7 +15,10 @@
* along with Baritone. If not, see <https://www.gnu.org/licenses/>.
*/
package tenor;
package tenor.game;
import tenor.ISingularChildTaskRelationship;
import tenor.SingularTaskLeaf;
public class GetToCraftingTableTask extends SingularTaskLeaf {
public static final GetToCraftingTableTask INSTANCE = new GetToCraftingTableTask(); // ? idk
@@ -15,7 +15,10 @@
* along with Baritone. If not, see <https://www.gnu.org/licenses/>.
*/
package tenor;
package tenor.game;
import tenor.IQuantityRelationship;
import tenor.QuantizedTaskLeaf;
public class MineTask extends QuantizedTaskLeaf {
@Override