Search in sources :

Example 11 with IDrawable

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

the class FruitPressRecipeCategory method setRecipe.

@Override
public void setRecipe(IRecipeLayout recipeLayout, FruitPressRecipeWrapper recipeWrapper, IIngredients ingredients) {
    IDrawable tankOverlay = ExtraTreesJeiPlugin.drawables.getTankOverlay();
    IDrawable tank = ExtraTreesJeiPlugin.drawables.getTank();
    IGuiFluidStackGroup fluidStacks = recipeLayout.getFluidStacks();
    fluidStacks.init(FruitPressMachine.TANK_OUTPUT, false, 55, 1, 16, 58, 1000, false, tankOverlay);
    fluidStacks.setBackground(FruitPressMachine.TANK_OUTPUT, tank);
    fluidStacks.set(ingredients);
    IGuiItemStackGroup itemStacks = recipeLayout.getItemStacks();
    itemStacks.init(0, true, 0, 22);
    itemStacks.set(ingredients);
    IDrawable slot = ExtraTreesJeiPlugin.guiHelper.getSlotDrawable();
    itemStacks.setBackground(0, slot);
}
Also used : IGuiFluidStackGroup(mezz.jei.api.gui.IGuiFluidStackGroup) IGuiItemStackGroup(mezz.jei.api.gui.IGuiItemStackGroup) IDrawable(mezz.jei.api.gui.IDrawable)

Example 12 with IDrawable

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

the class LumbermillRecipeCategory method drawExtras.

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

Example 13 with IDrawable

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

the class LumbermillRecipeCategory method setRecipe.

@Override
public void setRecipe(IRecipeLayout recipeLayout, LumbermillRecipeWrapper recipeWrapper, IIngredients ingredients) {
    IDrawable tankOverlay = ExtraTreesJeiPlugin.drawables.getTankOverlay();
    IDrawable tank = ExtraTreesJeiPlugin.drawables.getTank();
    IGuiFluidStackGroup fluidStacks = recipeLayout.getFluidStacks();
    fluidStacks.init(LumbermillMachine.TANK_WATER, true, 1, 1, 16, 58, LumbermillMachine.TANK_WATER_CAPACITY, false, tankOverlay);
    fluidStacks.setBackground(LumbermillMachine.TANK_WATER, tank);
    fluidStacks.set(ingredients);
    IGuiItemStackGroup itemStacks = recipeLayout.getItemStacks();
    itemStacks.init(0, true, 42, 21);
    itemStacks.init(1, false, 112, 0);
    itemStacks.init(2, false, 92, 21);
    itemStacks.init(3, false, 112, 42);
    itemStacks.set(ingredients);
    IDrawable slot = ExtraTreesJeiPlugin.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 14 with IDrawable

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

the class SequencerRecipeCategory method setRecipe.

@Override
public void setRecipe(IRecipeLayout recipeLayout, SequencerRecipeWrapper recipeWrapper, IIngredients ingredients) {
    IGuiItemStackGroup itemStacks = recipeLayout.getItemStacks();
    itemStacks.init(0, true, 0, 0);
    itemStacks.init(1, true, 0, 21);
    itemStacks.init(2, true, 52, 0);
    itemStacks.init(3, false, 52, 21);
    itemStacks.set(ingredients);
    IDrawable slot = GeneticsJeiPlugin.guiHelper.getSlotDrawable();
    for (int i = 0; i <= 3; i++) {
        itemStacks.setBackground(i, slot);
    }
}
Also used : IGuiItemStackGroup(mezz.jei.api.gui.IGuiItemStackGroup) IDrawable(mezz.jei.api.gui.IDrawable)

Example 15 with IDrawable

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

the class BreweryRecipeCategory method drawExtras.

@Override
public void drawExtras(Minecraft minecraft) {
    IDrawable arrow = ExtraTreesJeiPlugin.drawables.getArrow();
    arrow.draw(minecraft, 90, 25);
    arrowAnimated.draw(minecraft, 90, 25);
}
Also used : 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