Search in sources :

Example 16 with IDrawable

use of mezz.jei.api.gui.IDrawable in project Binnie by ForestryMC.

the class DistilleryRecipeCategory method setRecipe.

@Override
public void setRecipe(IRecipeLayout recipeLayout, DistilleryRecipeWrapper recipeWrapper, IIngredients ingredients) {
    IDrawable tank = ExtraTreesJeiPlugin.drawables.getTank();
    IDrawable tankOverlay = ExtraTreesJeiPlugin.drawables.getTankOverlay();
    IGuiFluidStackGroup fluidStacks = recipeLayout.getFluidStacks();
    fluidStacks.init(DistilleryMachine.TANK_INPUT, true, 1, 1, 16, 58, DistilleryLogic.INPUT_FLUID_AMOUNT, false, tankOverlay);
    fluidStacks.setBackground(DistilleryMachine.TANK_INPUT, tank);
    fluidStacks.init(DistilleryMachine.TANK_OUTPUT, false, 65, 1, 16, 58, DistilleryLogic.INPUT_FLUID_AMOUNT, false, tankOverlay);
    fluidStacks.setBackground(DistilleryMachine.TANK_OUTPUT, tank);
    fluidStacks.set(ingredients);
}
Also used : IGuiFluidStackGroup(mezz.jei.api.gui.IGuiFluidStackGroup) IDrawable(mezz.jei.api.gui.IDrawable)

Example 17 with IDrawable

use of mezz.jei.api.gui.IDrawable in project Binnie by ForestryMC.

the class FruitPressRecipeCategory method drawExtras.

@Override
public void drawExtras(Minecraft minecraft) {
    IDrawable arrow = ExtraTreesJeiPlugin.drawables.getArrow();
    arrow.draw(minecraft, 27, 26);
    arrowAnimated.draw(minecraft, 27, 26);
}
Also used : IDrawable(mezz.jei.api.gui.IDrawable)

Example 18 with IDrawable

use of mezz.jei.api.gui.IDrawable in project Binnie by ForestryMC.

the class IsolatorRecipeCategory method setRecipe.

@Override
public void setRecipe(IRecipeLayout recipeLayout, IsolatorRecipeWrapper recipeWrapper, IIngredients ingredients) {
    IDrawable tank = GeneticsJeiPlugin.drawables.getTank();
    IDrawable tankOverlay = GeneticsJeiPlugin.drawables.getTankOverlay();
    IGuiFluidStackGroup fluidStacks = recipeLayout.getFluidStacks();
    fluidStacks.init(Isolator.TANK_ETHANOL, true, 1, 1, 16, 58, 100, false, tankOverlay);
    fluidStacks.setBackground(Isolator.TANK_ETHANOL, tank);
    fluidStacks.set(ingredients);
    IGuiItemStackGroup itemStacks = recipeLayout.getItemStacks();
    itemStacks.init(0, true, 22, 0);
    itemStacks.init(1, true, 42, 21);
    itemStacks.init(2, true, 22, 42);
    itemStacks.init(3, false, 92, 21);
    itemStacks.set(ingredients);
    IDrawable slot = GeneticsJeiPlugin.guiHelper.getSlotDrawable();
    for (int i = 0; i <= 3; i++) {
        itemStacks.setBackground(i, slot);
    }
}
Also used : IGuiFluidStackGroup(mezz.jei.api.gui.IGuiFluidStackGroup) IGuiItemStackGroup(mezz.jei.api.gui.IGuiItemStackGroup) IDrawable(mezz.jei.api.gui.IDrawable)

Example 19 with IDrawable

use of mezz.jei.api.gui.IDrawable in project Binnie by ForestryMC.

the class PolymeriserRecipeCategory method drawExtras.

@Override
public void drawExtras(Minecraft minecraft) {
    IDrawable arrow = GeneticsJeiPlugin.drawables.getArrow();
    arrow.draw(minecraft, 69, 25);
    IDrawableAnimated arrowAnimated = GeneticsJeiPlugin.drawables.getArrowAnimated();
    arrowAnimated.draw(minecraft, 69, 25);
}
Also used : IDrawableAnimated(mezz.jei.api.gui.IDrawableAnimated) IDrawable(mezz.jei.api.gui.IDrawable)

Example 20 with IDrawable

use of mezz.jei.api.gui.IDrawable in project Binnie by ForestryMC.

the class PolymeriserRecipeCategory method setRecipe.

@Override
public void setRecipe(IRecipeLayout recipeLayout, PolymeriserRecipeWrapper recipeWrapper, IIngredients ingredients) {
    IGuiItemStackGroup itemStacks = recipeLayout.getItemStacks();
    itemStacks.init(0, true, 42, 21);
    itemStacks.init(1, true, 42, 42);
    itemStacks.init(2, false, 92, 21);
    itemStacks.set(ingredients);
    IDrawable slot = GeneticsJeiPlugin.guiHelper.getSlotDrawable();
    for (int i = 0; i <= 2; i++) {
        itemStacks.setBackground(i, slot);
    }
    itemStacks.addTooltipCallback((slotIndex, input, ingredient, tooltip) -> {
        if (slotIndex == 1) {
            tooltip.add("5x Processing Speed");
        }
    });
    IDrawable tank = GeneticsJeiPlugin.drawables.getTank();
    IDrawable tankOverlay = GeneticsJeiPlugin.drawables.getTankOverlay();
    IGuiFluidStackGroup fluidStacks = recipeLayout.getFluidStacks();
    fluidStacks.init(Polymeriser.TANK_BACTERIA, true, 1, 1, 16, 58, 10000, false, tankOverlay);
    fluidStacks.setBackground(Polymeriser.TANK_BACTERIA, tank);
    fluidStacks.init(Polymeriser.TANK_DNA, true, 21, 1, 16, 58, 10000, false, tankOverlay);
    fluidStacks.setBackground(Polymeriser.TANK_DNA, tank);
    fluidStacks.set(ingredients);
}
Also used : IGuiFluidStackGroup(mezz.jei.api.gui.IGuiFluidStackGroup) IGuiItemStackGroup(mezz.jei.api.gui.IGuiItemStackGroup) IDrawable(mezz.jei.api.gui.IDrawable)

Aggregations

IDrawable (mezz.jei.api.gui.IDrawable)21 IGuiItemStackGroup (mezz.jei.api.gui.IGuiItemStackGroup)10 IGuiFluidStackGroup (mezz.jei.api.gui.IGuiFluidStackGroup)9 SideOnly (net.minecraftforge.fml.relauncher.SideOnly)2 Gene (binnie.core.genetics.Gene)1 ItemSerum (binnie.genetics.item.ItemSerum)1 IAlleleSpecies (forestry.api.genetics.IAlleleSpecies)1 IIndividual (forestry.api.genetics.IIndividual)1 ISpeciesRoot (forestry.api.genetics.ISpeciesRoot)1 List (java.util.List)1 IDrawableAnimated (mezz.jei.api.gui.IDrawableAnimated)1 ItemStack (net.minecraft.item.ItemStack)1