Java Code Examples for mezz.jei.api.ingredients.IIngredients#setInput()

The following examples show how to use mezz.jei.api.ingredients.IIngredients#setInput() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: FluidRecipeJEI.java    From Wizardry with GNU Lesser General Public License v3.0 6 votes vote down vote up
@Override
public void getIngredients(@Nonnull IIngredients ingredients) {
	List<List<ItemStack>> stacks = Lists.newArrayList();
	stacks.add(Lists.newArrayList(builder.getMainInput().getMatchingStacks()));
	for (Ingredient ingredient : builder.getInputs())
		stacks.add(Lists.newArrayList(ingredient.getMatchingStacks()));

	if (!isFluidOutput())
		for (List<ItemStack> stackList : stacks)
			stackList.removeIf(Ingredient.fromStacks(builder.getOutput())::apply);

	ingredients.setInputLists(ItemStack.class, stacks);
	ingredients.setInput(FluidStack.class, new FluidStack(builder.getFluid(), 1000));

	if (isFluidOutput())
		ingredients.setOutput(FluidStack.class, builder.getFluidOutput());
	else
		ingredients.setOutput(ItemStack.class, builder.getOutput());
}
 
Example 2
Source File: FluidTransformRecipe.java    From ExNihiloAdscensio with MIT License 5 votes vote down vote up
@Override
public void getIngredients(IIngredients ingredients)
{
    ingredients.setInputs(ItemStack.class, inputStacks);
    ingredients.setInput(FluidStack.class, inputFluid);
    
    ingredients.setOutput(ItemStack.class, outputBucket);
    ingredients.setOutput(FluidStack.class, outputFluid);
}
 
Example 3
Source File: ScrubberRecipeWrapper.java    From EmergingTechnology with MIT License 4 votes vote down vote up
@Override
public void getIngredients(IIngredients ingredients)
{
    ingredients.setInput(VanillaTypes.ITEM, input);
    ingredients.setOutput(VanillaTypes.ITEM, output);
}
 
Example 4
Source File: FabricatorRecipeWrapper.java    From EmergingTechnology with MIT License 4 votes vote down vote up
@Override
public void getIngredients(IIngredients ingredients)
{
    ingredients.setInput(VanillaTypes.ITEM, input);
    ingredients.setOutput(VanillaTypes.ITEM, output);
}
 
Example 5
Source File: BioreactorRecipeWrapper.java    From EmergingTechnology with MIT License 4 votes vote down vote up
@Override
public void getIngredients(IIngredients ingredients)
{
    ingredients.setInput(VanillaTypes.ITEM, input);
    ingredients.setOutput(VanillaTypes.ITEM, output);
}
 
Example 6
Source File: CollectorRecipeWrapper.java    From EmergingTechnology with MIT License 4 votes vote down vote up
@Override
public void getIngredients(IIngredients ingredients)
{
    ingredients.setInput(VanillaTypes.ITEM, input);
    ingredients.setOutput(VanillaTypes.ITEM, output);
}
 
Example 7
Source File: BiomassRecipeWrapper.java    From EmergingTechnology with MIT License 4 votes vote down vote up
@Override
public void getIngredients(IIngredients ingredients)
{
    ingredients.setInput(VanillaTypes.ITEM, input);
    ingredients.setOutput(VanillaTypes.ITEM, output);
}
 
Example 8
Source File: LightRecipeWrapper.java    From EmergingTechnology with MIT License 4 votes vote down vote up
@Override
public void getIngredients(IIngredients ingredients)
{
    ingredients.setInput(VanillaTypes.ITEM, input);
    ingredients.setOutput(VanillaTypes.ITEM, output);
}
 
Example 9
Source File: ProcessorRecipeWrapper.java    From EmergingTechnology with MIT License 4 votes vote down vote up
@Override
public void getIngredients(IIngredients ingredients)
{
    ingredients.setInput(VanillaTypes.ITEM, input);
    ingredients.setOutput(VanillaTypes.ITEM, output);
}
 
Example 10
Source File: InjectorRecipeWrapper.java    From EmergingTechnology with MIT License 4 votes vote down vote up
@Override
public void getIngredients(IIngredients ingredients)
{
    ingredients.setInput(VanillaTypes.ITEM, input);
    ingredients.setOutput(VanillaTypes.ITEM, output);
}
 
Example 11
Source File: CookerRecipeWrapper.java    From EmergingTechnology with MIT License 4 votes vote down vote up
@Override
public void getIngredients(IIngredients ingredients)
{
    ingredients.setInput(VanillaTypes.ITEM, input);
    ingredients.setOutput(VanillaTypes.ITEM, output);
}
 
Example 12
Source File: AlgaeBioreactorRecipeWrapper.java    From EmergingTechnology with MIT License 4 votes vote down vote up
@Override
public void getIngredients(IIngredients ingredients)
{
    ingredients.setInput(VanillaTypes.ITEM, input);
    ingredients.setOutput(VanillaTypes.ITEM, output);
}
 
Example 13
Source File: ShredderRecipeWrapper.java    From EmergingTechnology with MIT License 4 votes vote down vote up
@Override
public void getIngredients(IIngredients ingredients)
{
    ingredients.setInput(VanillaTypes.ITEM, input);
    ingredients.setOutput(VanillaTypes.ITEM, output);
}
 
Example 14
Source File: HydroponicRecipeWrapper.java    From EmergingTechnology with MIT License 4 votes vote down vote up
@Override
public void getIngredients(IIngredients ingredients)
{
    ingredients.setInput(VanillaTypes.ITEM, input);
    ingredients.setOutput(VanillaTypes.ITEM, output);
}
 
Example 15
Source File: GTFuelRecipeWrapper.java    From GregTech with GNU Lesser General Public License v3.0 4 votes vote down vote up
@Override
public void getIngredients(IIngredients ingredients) {
    ingredients.setInput(FluidStack.class, recipe.getRecipeFluid());
}
 
Example 16
Source File: FloadRecipeWrapper.java    From YouTubeModdingTutorial with MIT License 4 votes vote down vote up
@Override
public void getIngredients(@Nonnull IIngredients ingredients) {
    ingredients.setOutput(VanillaTypes.FLUID, new FluidStack(ModLiquids.fload, 100));
    ingredients.setInput(VanillaTypes.ITEM, new ItemStack(Items.FEATHER));
}