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