Java Code Examples for mezz.jei.api.ingredients.IIngredients#setInputs()
The following examples show how to use
mezz.jei.api.ingredients.IIngredients#setInputs() .
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: GTJeiMultiRecipeWrapper.java From GT-Classic with GNU Lesser General Public License v3.0 | 6 votes |
@SuppressWarnings("deprecation") @Override public void getIngredients(IIngredients ingredients) { ArrayList<FluidStack> inputFluids = new ArrayList<>(); ArrayList<ItemStack> inputItems = new ArrayList<>(); for (IRecipeInput input : multiRecipe.getInputs()) { if (input instanceof RecipeInputFluid) { inputFluids.add(((RecipeInputFluid) input).fluid); } else { inputItems.addAll(input.getInputs()); } } if (!inputFluids.isEmpty()) { ingredients.setInputs(FluidStack.class, inputFluids); } ingredients.setInputs(ItemStack.class, inputItems); MachineOutput output = multiRecipe.getOutputs(); if (output instanceof GTFluidMachineOutput) { ingredients.setOutputs(FluidStack.class, ((GTFluidMachineOutput) output).getFluids()); } ingredients.setOutputs(ItemStack.class, multiRecipe.getOutputs().getAllOutputs()); }
Example 2
Source File: GTJeiUUAmplifierWrapper.java From GT-Classic with GNU Lesser General Public License v3.0 | 6 votes |
@SuppressWarnings("deprecation") @Override public void getIngredients(IIngredients ingredients) { ArrayList<FluidStack> inputFluids = new ArrayList<>(); ArrayList<ItemStack> inputItems = new ArrayList<>(); for (IRecipeInput input : multiRecipe.getInputs()) { if (input instanceof RecipeInputFluid) { inputFluids.add(((RecipeInputFluid) input).fluid); } else { inputItems.addAll(input.getInputs()); } } if (!inputFluids.isEmpty()) { ingredients.setInputs(FluidStack.class, inputFluids); } ingredients.setInputs(ItemStack.class, inputItems); ingredients.setOutputs(ItemStack.class, multiRecipe.getOutputs().getAllOutputs()); }
Example 3
Source File: GTJeiMagicFuelWrapper.java From GT-Classic with GNU Lesser General Public License v3.0 | 6 votes |
@SuppressWarnings("deprecation") @Override public void getIngredients(IIngredients ingredients) { ArrayList<FluidStack> inputFluids = new ArrayList<>(); ArrayList<ItemStack> inputItems = new ArrayList<>(); for (IRecipeInput input : multiRecipe.getInputs()) { if (input instanceof RecipeInputFluid) { inputFluids.add(((RecipeInputFluid) input).fluid); } else { inputItems.addAll(input.getInputs()); } } if (!inputFluids.isEmpty()) { ingredients.setInputs(FluidStack.class, inputFluids); } ingredients.setInputs(ItemStack.class, inputItems); ingredients.setOutputs(ItemStack.class, multiRecipe.getOutputs().getAllOutputs()); }
Example 4
Source File: MachineRecipeWrapper.java From customstuff4 with GNU General Public License v3.0 | 6 votes |
@Override public void getIngredients(IIngredients ingredients) { List<Object> inputs = Lists.newArrayList(); for (RecipeInput input : recipe.getRecipeInput()) { if (input.isOreClass()) inputs.add(input.getOreClass().getOreName()); else inputs.add(input.getStack().getItemStack().copy()); } ingredients.setInputLists(ItemStack.class, jeiHelpers.getStackHelper().expandRecipeItemStackInputs(inputs)); ingredients.setInputs(FluidStack.class, recipe.getFluidRecipeInput()); ingredients.setOutputs(ItemStack.class, output.getOutputItems()); ingredients.setOutputs(FluidStack.class, output.getOutputFluids()); }
Example 5
Source File: ScaffolderRecipeWrapper.java From EmergingTechnology with MIT License | 5 votes |
@Override public void getIngredients(IIngredients ingredients) { ArrayList<ItemStack> inputs = new ArrayList<ItemStack>(); inputs.add(input); inputs.add(scaffoldItem); ingredients.setInputs(VanillaTypes.ITEM, inputs); ingredients.setOutput(VanillaTypes.ITEM, output); }
Example 6
Source File: GTJeiMortarWrapper.java From GT-Classic with GNU Lesser General Public License v3.0 | 5 votes |
@SuppressWarnings("deprecation") @Override public void getIngredients(IIngredients ingredients) { ArrayList<ItemStack> inputs = new ArrayList<>(); for (IRecipeInput input : multiRecipe.getInputs()) { inputs.addAll(input.getInputs()); } ingredients.setInputs(ItemStack.class, inputs); ingredients.setOutputs(ItemStack.class, multiRecipe.getOutputs().getAllOutputs()); }
Example 7
Source File: FluidBlockTransformRecipe.java From ExNihiloAdscensio with MIT License | 5 votes |
@Override public void getIngredients(IIngredients ingredients) { ingredients.setInputs(ItemStack.class, getInputs()); ingredients.setInputs(FluidStack.class, getFluidInputs()); ingredients.setOutput(ItemStack.class, outputStack); }
Example 8
Source File: FluidTransformRecipe.java From ExNihiloAdscensio with MIT License | 5 votes |
@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 9
Source File: FluidOnTopRecipe.java From ExNihiloAdscensio with MIT License | 5 votes |
@Override public void getIngredients(IIngredients ingredients) { ingredients.setInputs(ItemStack.class, getInputs()); ingredients.setInputs(FluidStack.class, getFluidInputs()); ingredients.setOutput(ItemStack.class, outputStack); }
Example 10
Source File: MachineRecipe.java From AdvancedRocketry with MIT License | 5 votes |
@Override public void getIngredients(IIngredients ingredients) { ingredients.setInputLists(ItemStack.class, this.ingredients); ingredients.setOutputs(ItemStack.class, result); ingredients.setInputs(FluidStack.class, fluidIngredients); ingredients.setOutputs(FluidStack.class, fluidOutputs); }
Example 11
Source File: ProduceRecipeWrapper.java From AgriCraft with MIT License | 5 votes |
@Override public void getIngredients(IIngredients ingredients) { // Set Inputs ingredients.setInputs(ItemStack.class, input); // Set Outputs ingredients.setOutputs(ItemStack.class, output); }
Example 12
Source File: FacadeRecipeWrapper.java From GregTech with GNU Lesser General Public License v3.0 | 4 votes |
@Override public void getIngredients(IIngredients ingredients) { ingredients.setInputs(ItemStack.class, Lists.newArrayList(plateStack, facadeStack)); ingredients.setOutput(ItemStack.class, resultStack); }
Example 13
Source File: MultiblockInfoRecipeWrapper.java From GregTech with GNU Lesser General Public License v3.0 | 4 votes |
@Override public void getIngredients(IIngredients ingredients) { ingredients.setInputs(ItemStack.class, allItemStackInputs); ingredients.setOutput(ItemStack.class, controllerStack); }
Example 14
Source File: HammerRecipe.java From ExNihiloAdscensio with MIT License | 4 votes |
@Override public void getIngredients(IIngredients ingredients) { ingredients.setInputs(ItemStack.class, inputs); ingredients.setOutputs(ItemStack.class, outputs); }
Example 15
Source File: CompostRecipe.java From ExNihiloAdscensio with MIT License | 4 votes |
@Override public void getIngredients(IIngredients ingredients) { ingredients.setInputs(ItemStack.class, inputs); ingredients.setOutput(ItemStack.class, output); }
Example 16
Source File: SieveRecipe.java From ExNihiloAdscensio with MIT License | 4 votes |
@Override public void getIngredients(IIngredients ingredients) { ingredients.setInputs(ItemStack.class, inputs); ingredients.setOutputs(ItemStack.class, outputs); }