mezz.jei.api.ingredients.VanillaTypes Java Examples

The following examples show how to use mezz.jei.api.ingredients.VanillaTypes. 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 vote down vote up
@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: CategoryL2IS.java    From Sakura_mod with MIT License 5 votes vote down vote up
@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 #3
Source File: FloadRecipeCategory.java    From YouTubeModdingTutorial with MIT License 5 votes vote down vote up
@Override
public void setRecipe(IRecipeLayout recipeLayout, FloadRecipeWrapper recipeWrapper, IIngredients ingredients) {
    IGuiItemStackGroup guiItemStacks = recipeLayout.getItemStacks();
    IGuiFluidStackGroup guiFluidStacks = recipeLayout.getFluidStacks();

    guiFluidStacks.init(0, false, 65, 6, 18, 18, 100, true, null);
    guiItemStacks.init(0, true, 6, 6);

    List<ItemStack> inputs = ingredients.getInputs(VanillaTypes.ITEM).get(0);
    List<FluidStack> outputs = ingredients.getOutputs(VanillaTypes.FLUID).get(0);

    guiItemStacks.set(0, inputs);
    guiFluidStacks.set(0, outputs);
}
 
Example #4
Source File: CustomRecipeCategory.java    From YouTubeModdingTutorial with MIT License 5 votes vote down vote up
@Override
public void setRecipe(IRecipeLayout recipeLayout, CustomRecipeWrapper recipeWrapper, IIngredients ingredients) {
    IGuiItemStackGroup guiItemStacks = recipeLayout.getItemStacks();

    guiItemStacks.init(0, true, 6, 6);
    guiItemStacks.init(3, false, 114, 6);

    List<ItemStack> inputs = ingredients.getInputs(VanillaTypes.ITEM).get(0);
    List<ItemStack> outputs = ingredients.getOutputs(VanillaTypes.ITEM).get(0);

    guiItemStacks.set(0, inputs);
    guiItemStacks.set(3, outputs);
}
 
Example #5
Source File: ScaffolderRecipeWrapper.java    From EmergingTechnology with MIT License 5 votes vote down vote up
@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: CategoryDistillation.java    From Sakura_mod with MIT License 5 votes vote down vote up
@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 #7
Source File: CategoryBarrel.java    From Sakura_mod with MIT License 5 votes vote down vote up
@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: 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 #9
Source File: SimpleRecipe.java    From TofuCraftReload with MIT License 4 votes vote down vote up
@Override
public void getIngredients(IIngredients ingredients) {
	ingredients.setInputLists(VanillaTypes.ITEM, inputs);
	ingredients.setOutput(VanillaTypes.ITEM, output);
}
 
Example #10
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));
}
 
Example #11
Source File: CustomRecipeWrapper.java    From YouTubeModdingTutorial with MIT License 4 votes vote down vote up
@Override
public void getIngredients(@Nonnull IIngredients ingredients) {
    ingredients.setOutput(VanillaTypes.ITEM, output);
    ingredients.setInputLists(VanillaTypes.ITEM, inputs);
}
 
Example #12
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 #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: 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 #15
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 #16
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 #17
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 #18
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 #19
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 #20
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 #21
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 #22
Source File: SimpleRecipe.java    From Sakura_mod with MIT License 4 votes vote down vote up
public void getIngredients(IIngredients ingredients){
	ingredients.setInputLists(VanillaTypes.ITEM, this.inputs);
	ingredients.setOutputLists(VanillaTypes.ITEM, this.output);
}
 
Example #23
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 #24
Source File: BarrelRecipe.java    From Sakura_mod with MIT License 4 votes vote down vote up
public void getIngredients(IIngredients ingredients){
  ingredients.setInputLists(VanillaTypes.ITEM, this.inputs);
  ingredients.setInputLists(VanillaTypes.FLUID, this.fluid);
  ingredients.setOutput(VanillaTypes.FLUID, this.output);
}
 
Example #25
Source File: ItemFluidRecipe.java    From Sakura_mod with MIT License 4 votes vote down vote up
public void getIngredients(IIngredients ingredients){
  ingredients.setInputLists(VanillaTypes.ITEM, this.inputs);
  ingredients.setInputLists(VanillaTypes.FLUID, this.fluid);
  ingredients.setOutput(VanillaTypes.ITEM, this.output);
}