Search in sources :

Example 1 with IDrawable

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

the class DatabaseRecipeCategory method setRecipe.

@Override
public void setRecipe(IRecipeLayout recipeLayout, DatabaseRecipeWrapper recipeWrapper, IIngredients ingredients) {
    IGuiItemStackGroup itemStacks = recipeLayout.getItemStacks();
    itemStacks.init(0, true, 30, 0);
    itemStacks.init(1, true, 58, 18);
    itemStacks.init(2, false, 85, 0);
    itemStacks.set(ingredients);
    IDrawable slot = GeneticsJeiPlugin.guiHelper.getSlotDrawable();
    itemStacks.setBackground(0, slot);
    itemStacks.setBackground(2, slot);
}
Also used : IGuiItemStackGroup(mezz.jei.api.gui.IGuiItemStackGroup) IDrawable(mezz.jei.api.gui.IDrawable)

Example 2 with IDrawable

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

the class DatabaseRecipeWrapper method drawInfo.

@Override
@SideOnly(Side.CLIENT)
public void drawInfo(Minecraft minecraft, int recipeWidth, int recipeHeight, int mouseX, int mouseY) {
    IDrawable arrow = GeneticsJeiPlugin.drawables.getArrow();
    arrow.draw(minecraft, 60, 4);
    arrowAnimated.draw(minecraft, 60, 4);
    String instructions = "Open the database and pick up an empty serum. Click the serum on a Sequenced gene to apply.";
    minecraft.fontRenderer.drawSplitString(instructions, 0, 40, recipeWidth, Color.gray.getRGB());
}
Also used : IDrawable(mezz.jei.api.gui.IDrawable) SideOnly(net.minecraftforge.fml.relauncher.SideOnly)

Example 3 with IDrawable

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

the class GenepoolRecipeCategory method setRecipe.

@Override
public void setRecipe(IRecipeLayout recipeLayout, GenepoolRecipeWrapper recipeWrapper, IIngredients ingredients) {
    IDrawable tank = GeneticsJeiPlugin.drawables.getTank();
    IDrawable tankOverlay = GeneticsJeiPlugin.drawables.getTankOverlay();
    IGuiFluidStackGroup fluidStacks = recipeLayout.getFluidStacks();
    fluidStacks.init(Genepool.TANK_DNA, false, 96, 1, 16, 58, 100, false, tankOverlay);
    fluidStacks.setBackground(Genepool.TANK_DNA, tank);
    fluidStacks.init(Genepool.TANK_ETHANOL, true, 1, 1, 16, 58, 100, false, tankOverlay);
    fluidStacks.setBackground(Genepool.TANK_ETHANOL, tank);
    fluidStacks.set(ingredients);
    IGuiItemStackGroup itemStacks = recipeLayout.getItemStacks();
    itemStacks.init(0, true, 22, 0);
    itemStacks.init(1, true, 42, 41);
    itemStacks.set(ingredients);
    IDrawable slot = GeneticsJeiPlugin.guiHelper.getSlotDrawable();
    itemStacks.setBackground(0, slot);
    itemStacks.setBackground(1, slot);
}
Also used : IGuiFluidStackGroup(mezz.jei.api.gui.IGuiFluidStackGroup) IGuiItemStackGroup(mezz.jei.api.gui.IGuiItemStackGroup) IDrawable(mezz.jei.api.gui.IDrawable)

Example 4 with IDrawable

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

the class GenepoolRecipeCategory method drawExtras.

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

Example 5 with IDrawable

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

the class IncubatorRecipeCategory method drawExtras.

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

Aggregations

IDrawable (mezz.jei.api.gui.IDrawable)23 IGuiItemStackGroup (mezz.jei.api.gui.IGuiItemStackGroup)10 IGuiFluidStackGroup (mezz.jei.api.gui.IGuiFluidStackGroup)9 List (java.util.List)2 ItemStack (net.minecraft.item.ItemStack)2 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 ArrayList (java.util.ArrayList)1 Consumer (java.util.function.Consumer)1 mezz.jei.api (mezz.jei.api)1 IDrawableAnimated (mezz.jei.api.gui.IDrawableAnimated)1 IIngredients (mezz.jei.api.ingredients.IIngredients)1 IModIngredientRegistration (mezz.jei.api.ingredients.IModIngredientRegistration)1 VanillaTypes (mezz.jei.api.ingredients.VanillaTypes)1 IRecipeCategory (mezz.jei.api.recipe.IRecipeCategory)1 IRecipeCategoryRegistration (mezz.jei.api.recipe.IRecipeCategoryRegistration)1