This commit is contained in:
PrototypeTrousers
2022-03-05 00:03:19 -03:00
parent 447c6debab
commit c532b9c839
3 changed files with 40 additions and 36 deletions
@@ -67,6 +67,7 @@ public class CraftingJob implements Runnable, ICraftingJob
private final Stopwatch craftingTreeWatch = Stopwatch.createUnstarted();
private CraftingTreeNode tree;
private final IAEItemStack output;
private long expectedOutput;
private boolean simulate = false;
private MECraftingInventory availableCheck;
private long bytes = 0;
@@ -98,6 +99,16 @@ public class CraftingJob implements Runnable, ICraftingJob
this.availableCheck = null;
}
public long getExpectedOutput()
{
return expectedOutput;
}
public void incExpectedOutput( long amount )
{
this.expectedOutput += amount;
}
private CraftingTreeNode getCraftingTree( final ICraftingGrid cc, final IAEItemStack what )
{
return new CraftingTreeNode( cc, this, what, null, -1, 0 );