Initial work on the Attractor alchemy array. Very WIP and is not quite where I like it.

This commit is contained in:
WayofTime 2016-06-27 20:01:34 -04:00
parent a35e4385ed
commit ad546380a3
11 changed files with 895 additions and 6 deletions

View file

@ -174,11 +174,29 @@ public class AlchemyArrayRecipeRegistry
if (input.size() == 1 && arrayRecipe.getInput().size() == 1)
{
if (ItemStackWrapper.getHolder(arrayRecipe.getInput().get(0)).equals(ItemStackWrapper.getHolder(input.get(0))))
return arrayRecipe.getAlchemyArrayEffectForCatalyst(catalystStack); // TODO: Decide if a copy should be returned.
{
AlchemyArrayEffect effect = arrayRecipe.getAlchemyArrayEffectForCatalyst(catalystStack);
if (effect != null)
{
return effect.getNewCopy();
} else
{
return null;
}
}
} else
{
if (input.equals(arrayRecipe.getInput()))
return arrayRecipe.getAlchemyArrayEffectForCatalyst(catalystStack);
{
AlchemyArrayEffect effect = arrayRecipe.getAlchemyArrayEffectForCatalyst(catalystStack);
if (effect != null)
{
return effect.getNewCopy();
} else
{
return null;
}
}
}
}