Crafting Emitter Progress.

This commit is contained in:
AlgorithmX2
2014-08-11 00:08:31 -05:00
parent f5f93dd01e
commit 6b9441f32a
9 changed files with 464 additions and 118 deletions
+6
View File
@@ -32,6 +32,7 @@ public class CraftingTreeNode
// what are the crafting patterns for this?
private ArrayList<CraftingTreeProcess> nodes = new ArrayList();
boolean canEmit = false;
boolean cannotUse = false;
long missing = 0;
@@ -49,12 +50,17 @@ public class CraftingTreeNode
this.job = job;
sim = false;
canEmit = cc.canEmitFor( what );
if ( canEmit )
return; // if you can emit for something, you can't make it with patterns.
for (ICraftingPatternDetails details : cc.getCraftingFor( what, parent == null ? null : parent.details, slot, world ))// in
// order.
{
if ( parent == null || parent.notRecurive( details ) )
nodes.add( new CraftingTreeProcess( cc, job, details, this, depth + 1, world ) );
}
}
public IAEItemStack getStack(long size)