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);
}
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());
}
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);
}
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);
}
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);
}
Aggregations