mezz.jei.api.recipe.IRecipeWrapper Java Examples
The following examples show how to use
mezz.jei.api.recipe.IRecipeWrapper.
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: CategoryPot.java From Sakura_mod with MIT License | 6 votes |
@Override public void setRecipe(IRecipeLayout arg0, IRecipeWrapper arg1, IIngredients arg2) { IGuiItemStackGroup items = arg0.getItemStacks(); items.init(0, true, 37, 11); int k,l; for (k = 1; k <5; ++k) items.init(k,true, 10 + (k-1) * 18, 29); for (l = 5; l <9; ++l) items.init(l,true, 10 + (l-5) * 18, 47); items.init(9, false, 122, 38); items.set(arg2); IGuiFluidStackGroup fiuld = arg0.getFluidStacks(); fiuld.init(0, true, 88, 4, 72, 16, arg2.getInputs(VanillaTypes.FLUID).get(0).get(0).amount, false, null); if(arg2.getInputs(VanillaTypes.FLUID).get(0).get(0)!=null&&arg2.getInputs(VanillaTypes.FLUID).get(0).get(0).amount>0) fiuld.set(0, arg2.getInputs(VanillaTypes.FLUID).get(0)); }
Example #2
Source File: CraftingRecipeCategory.java From customstuff4 with GNU General Public License v3.0 | 6 votes |
@Override public void setRecipe(IRecipeLayout recipeLayout, IRecipeWrapper recipeWrapper, IIngredients ingredients) { super.setRecipe(recipeLayout, recipeWrapper, ingredients); IGuiItemStackGroup stacks = recipeLayout.getItemStacks(); List<List<ItemStack>> inputItems = ingredients.getInputs(ItemStack.class); List<List<ItemStack>> outputItems = ingredients.getOutputs(ItemStack.class); initItems(stacks, true, module.rows * module.columns, 0); initItems(stacks, false, 1, module.rows * module.columns); if (recipeWrapper instanceof IShapedCraftingRecipeWrapper) { IShapedCraftingRecipeWrapper wrapper = (IShapedCraftingRecipeWrapper) recipeWrapper; craftingGridHelper.setInputs(stacks, inputItems, wrapper.getWidth(), wrapper.getHeight()); } else { craftingGridHelper.setInputs(stacks, inputItems); recipeLayout.setShapeless(); } stacks.set(module.rows * module.columns, outputItems.get(0)); }
Example #3
Source File: CategoryCrusher.java From TofuCraftReload with MIT License | 5 votes |
@Override public void setRecipe(IRecipeLayout arg0, IRecipeWrapper arg1, IIngredients arg2) { IGuiItemStackGroup items = arg0.getItemStacks(); items.init(0, true, 4, 4); items.init(1, false, 74, 4); items.set(arg2); }
Example #4
Source File: CategoryAggregator.java From TofuCraftReload with MIT License | 5 votes |
@Override public void setRecipe(IRecipeLayout arg0, IRecipeWrapper arg1, IIngredients arg2) { IGuiItemStackGroup items = arg0.getItemStacks(); items.init(0, true, 4, 4); items.init(1, false, 74, 4); items.set(arg2); }
Example #5
Source File: CategoryAdvancedAggregator.java From TofuCraftReload with MIT License | 5 votes |
@Override public void setRecipe(IRecipeLayout arg0, IRecipeWrapper arg1, IIngredients arg2) { IGuiItemStackGroup items = arg0.getItemStacks(); items.init(0, true, 5, 5); items.init(1, true, 25, 5); items.init(2, true, 5, 25); items.init(3, true, 25, 25); items.init(4, false, 75, 15); items.set(arg2); }
Example #6
Source File: CategoryL2IS.java From Sakura_mod with MIT License | 5 votes |
@Override public void setRecipe(IRecipeLayout arg0, IRecipeWrapper arg1, IIngredients arg2) { IGuiItemStackGroup items = arg0.getItemStacks(); items.init(0, true, 13, 14); items.init(1, false, 62, 14); items.set(arg2); IGuiFluidStackGroup fiuld = arg0.getFluidStacks(); fiuld.init(0, true, 14, 47, 65, 20, arg2.getInputs(VanillaTypes.FLUID).get(0).get(0).amount, false, null); fiuld.set(0, arg2.getInputs(VanillaTypes.FLUID).get(0)); }
Example #7
Source File: CategoryDistillation.java From Sakura_mod with MIT License | 5 votes |
@Override public void setRecipe(IRecipeLayout arg0, IRecipeWrapper arg1, IIngredients arg2) { IGuiItemStackGroup items = arg0.getItemStacks(); items.init(0,true, 29, 13); items.init(1,true, 29, 31); items.init(2,true, 29, 49); items.set(arg2); IGuiFluidStackGroup fiuld = arg0.getFluidStacks(); fiuld.init(0, true, 6, 6, 16, 68, arg2.getInputs(VanillaTypes.FLUID).get(0).get(0).amount, false, null); fiuld.set(0, arg2.getInputs(VanillaTypes.FLUID).get(0)); fiuld.init(1, false, 77, 6, 16, 68, arg2.getOutputs(VanillaTypes.FLUID).get(0).get(0).amount, false, null); fiuld.set(1, arg2.getOutputs(VanillaTypes.FLUID).get(0)); }
Example #8
Source File: CategoryMortar.java From Sakura_mod with MIT License | 5 votes |
@Override public void setRecipe(IRecipeLayout arg0, IRecipeWrapper arg1, IIngredients arg2) { IGuiItemStackGroup items = arg0.getItemStacks(); items.init(0, true, 1, 1); items.init(1, true, 19, 1); items.init(2, true, 1, 19); items.init(3, true, 19, 19); items.init(4, false, 69, 12); items.init(5, false, 93, 12); items.set(arg2); }
Example #9
Source File: CategoryBarrel.java From Sakura_mod with MIT License | 5 votes |
@Override public void setRecipe(IRecipeLayout arg0, IRecipeWrapper arg1, IIngredients arg2) { IGuiItemStackGroup items = arg0.getItemStacks(); items.init(0,true, 29, 13); items.init(1,true, 29, 31); items.init(2,true, 29, 49); items.set(arg2); IGuiFluidStackGroup fiuld = arg0.getFluidStacks(); fiuld.init(0, true, 6, 6, 16, 68, arg2.getInputs(VanillaTypes.FLUID).get(0).get(0).amount, false, null); fiuld.set(0, arg2.getInputs(VanillaTypes.FLUID).get(0)); fiuld.init(1, false, 77, 6, 16, 68, arg2.getOutputs(VanillaTypes.FLUID).get(0).get(0).amount, false, null); fiuld.set(1, arg2.getOutputs(VanillaTypes.FLUID).get(0)); }
Example #10
Source File: CategoryCompressor.java From TofuCraftReload with MIT License | 5 votes |
@Override public void setRecipe(IRecipeLayout arg0, IRecipeWrapper arg1, IIngredients arg2) { IGuiItemStackGroup items = arg0.getItemStacks(); items.init(0, true, 4, 4); items.init(1, false, 74, 4); items.set(arg2); }
Example #11
Source File: JEICrusherRecipeCategory.java From BaseMetals with GNU Lesser General Public License v2.1 | 5 votes |
@Override public void setRecipe(IRecipeLayout recipeLayout, IRecipeWrapper recipeWrapper) { IGuiItemStackGroup guiItemStacks = recipeLayout.getItemStacks(); int x = 45, y = 7; guiItemStacks.init(inputSlot, true, x, y); guiItemStacks.init(outputSlot, false, x+58, y); guiItemStacks.setFromRecipe(inputSlot, recipeWrapper.getInputs()); guiItemStacks.setFromRecipe(outputSlot, recipeWrapper.getOutputs()); }
Example #12
Source File: CrystallizerRecipeHandler.java From AdvancedRocketry with MIT License | 4 votes |
@Override public IRecipeWrapper getRecipeWrapper(CrystallizerWrapper recipe) { return recipe; }
Example #13
Source File: MutationRecipeHandler.java From AgriCraft with MIT License | 4 votes |
@Nonnull @Override public IRecipeWrapper getRecipeWrapper(@Nonnull IAgriMutation recipe) { return new MutationRecipeWrapper(recipe); }
Example #14
Source File: RollingMachineRecipeHandler.java From AdvancedRocketry with MIT License | 4 votes |
@Override public IRecipeWrapper getRecipeWrapper(RollingMachineWrapper recipe) { return recipe; }
Example #15
Source File: PlatePressRecipeHandler.java From AdvancedRocketry with MIT License | 4 votes |
@Override public IRecipeWrapper getRecipeWrapper(PlatePressWrapper recipe) { return recipe; }
Example #16
Source File: BlastFurnaceRecipeHandler.java From AdvancedRocketry with MIT License | 4 votes |
@Override public IRecipeWrapper getRecipeWrapper(BlastFurnaceWrapper recipe) { return recipe; }
Example #17
Source File: ChemicalReactorRecipeHandler.java From AdvancedRocketry with MIT License | 4 votes |
@Override public IRecipeWrapper getRecipeWrapper(ChemicalReactorlWrapper recipe) { return recipe; }
Example #18
Source File: MachineTemplate.java From AdvancedRocketry with MIT License | 4 votes |
@Override public IRecipeWrapper getRecipeWrapper(MachineRecipe recipe) { // TODO Auto-generated method stub return null; }
Example #19
Source File: ElectrolyzerRecipeHandler.java From AdvancedRocketry with MIT License | 4 votes |
@Override public IRecipeWrapper getRecipeWrapper(ElectrolyzerWrapper recipe) { return recipe; }
Example #20
Source File: CrusherRecipeHandler.java From BaseMetals with GNU Lesser General Public License v2.1 | 4 votes |
@Override public IRecipeWrapper getRecipeWrapper(CrusherRecipeJEI recipe) { return recipe; }
Example #21
Source File: ProduceRecipeHandler.java From AgriCraft with MIT License | 4 votes |
@Nonnull @Override public IRecipeWrapper getRecipeWrapper(@Nonnull IAgriPlant recipe) { return new ProduceRecipeWrapper(recipe); }
Example #22
Source File: LatheRecipeHandler.java From AdvancedRocketry with MIT License | 4 votes |
@Override public IRecipeWrapper getRecipeWrapper(LatheWrapper recipe) { return recipe; }
Example #23
Source File: SawMillRecipeHandler.java From AdvancedRocketry with MIT License | 4 votes |
@Override public IRecipeWrapper getRecipeWrapper(SawMillWrapper recipe) { return recipe; }
Example #24
Source File: PrecisionAssemblerRecipeHandler.java From AdvancedRocketry with MIT License | 4 votes |
@Override public IRecipeWrapper getRecipeWrapper(PrecisionAssemblerWrapper recipe) { return recipe; }
Example #25
Source File: SieveRecipeHandler.java From ExNihiloAdscensio with MIT License | 4 votes |
@Override public IRecipeWrapper getRecipeWrapper(SieveRecipe recipe) { return recipe; }
Example #26
Source File: CompostRecipeHandler.java From ExNihiloAdscensio with MIT License | 4 votes |
@Override public IRecipeWrapper getRecipeWrapper(CompostRecipe recipe) { return recipe; }
Example #27
Source File: FluidOnTopRecipeHandler.java From ExNihiloAdscensio with MIT License | 4 votes |
@Override public IRecipeWrapper getRecipeWrapper(FluidOnTopRecipe recipe) { return recipe; }
Example #28
Source File: FluidTransformRecipeHandler.java From ExNihiloAdscensio with MIT License | 4 votes |
@Override public IRecipeWrapper getRecipeWrapper(FluidTransformRecipe recipe) { return recipe; }
Example #29
Source File: FluidBlockTransformRecipeHandler.java From ExNihiloAdscensio with MIT License | 4 votes |
@Override public IRecipeWrapper getRecipeWrapper(FluidBlockTransformRecipe recipe) { return recipe; }
Example #30
Source File: HammerRecipeHandler.java From ExNihiloAdscensio with MIT License | 4 votes |
@Override public IRecipeWrapper getRecipeWrapper(HammerRecipe recipe) { return recipe; }