Removed Purify Crafting Handler.
Added Crystal Growth ( for Nether, Certus, and Fluix. ) Added Macerator Crafting Handler. Added Pulverizer Crafting Handler. Implemented Grid Crafting Handler. Formation Planes now eject items in a more consistent manner. Formation Planes can now place, or eject into replaceable blocks ( air/grass/fluids )
This commit is contained in:
@@ -2,6 +2,8 @@ package appeng.recipes.handlers;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import net.minecraft.item.ItemStack;
|
||||
import appeng.api.AEApi;
|
||||
import appeng.api.exceptions.MissingIngredientError;
|
||||
import appeng.api.exceptions.RecipeError;
|
||||
import appeng.api.exceptions.RegistrationError;
|
||||
@@ -11,17 +13,30 @@ import appeng.api.recipes.IIngredient;
|
||||
public class Grind implements ICraftHandler
|
||||
{
|
||||
|
||||
IIngredient pro_input;
|
||||
IIngredient pro_output[];
|
||||
|
||||
@Override
|
||||
public void setup(List<List<IIngredient>> input,
|
||||
List<List<IIngredient>> output) throws RecipeError {
|
||||
// TODO Auto-generated method stub
|
||||
|
||||
public void setup(List<List<IIngredient>> input, List<List<IIngredient>> output) throws RecipeError
|
||||
{
|
||||
if ( input.size() == 1 && output.size() == 1 )
|
||||
{
|
||||
int outs = output.get( 0 ).size();
|
||||
if ( input.get( 0 ).size() == 1 && outs == 1 )
|
||||
{
|
||||
pro_input = input.get( 0 ).get( 0 );
|
||||
pro_output = output.get( 0 ).toArray( new IIngredient[outs] );
|
||||
return;
|
||||
}
|
||||
}
|
||||
new RecipeError( "Grind must have a single input, and single output." );
|
||||
}
|
||||
|
||||
@Override
|
||||
public void register() throws RegistrationError, MissingIngredientError {
|
||||
// TODO Auto-generated method stub
|
||||
|
||||
public void register() throws RegistrationError, MissingIngredientError
|
||||
{
|
||||
for (ItemStack is : pro_input.getItemStackSet())
|
||||
AEApi.instance().registries().grinder().addRecipe( is, pro_output[0].getItemStack(), 8 );
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user