Recipe Engine Added, not quite done yet tho.

This commit is contained in:
AlgorithmX2
2014-02-09 21:16:36 -06:00
parent df1ba5282a
commit 4a87ceac4f
18 changed files with 530 additions and 441 deletions
+13
View File
@@ -41,11 +41,14 @@ public class ItemPart extends AEBaseItem implements IPartItem, IItemGroup
HashMap<Integer, PartTypeIst> dmgToPart = new HashMap();
public static ItemPart instance;
public ItemPart() {
super( ItemPart.class );
setfeature( EnumSet.of( AEFeature.Core ) );
AEApi.instance().partHelper().setItemBusRenderer( this );
setHasSubtypes( true );
instance = this;
}
public ItemStackSrc createPart(PartType mat, Enum varient)
@@ -91,6 +94,16 @@ public class ItemPart extends AEBaseItem implements IPartItem, IItemGroup
return null;
}
public int getDamageByType(PartType t)
{
for (Entry<Integer, PartTypeIst> pt : dmgToPart.entrySet())
{
if ( pt.getValue().part == t )
return pt.getKey();
}
return -1;
}
public PartType getTypeByStack(ItemStack is)
{
if ( is == null )