use of com.mrcrayfish.furniture.api.RecipeData in project MrCrayfishFurnitureMod by MrCrayfish.
the class PageMicrowave method draw.
@Override
public void draw(GuiRecipeBook gui, int x, int y, int mouseX, int mouseY, float partialTicks) {
for (int i = 0; i < recipes.size(); i++) {
int px = x + ((i / 4) * 150) + 15;
int py = y + ((i % 4) * spacing);
RecipeData data = recipes.get(i);
gui.getItemRenderer().zLevel = 100.0F;
gui.getItemRenderer().renderItemAndEffectIntoGUI(data.getInput(), px, py);
gui.getItemRenderer().renderItemOverlays(gui.getFontRenderer(), data.getInput(), px, py);
gui.getItemRenderer().renderItemAndEffectIntoGUI(data.getOutput(), px + 60, py);
gui.getItemRenderer().renderItemOverlays(gui.getFontRenderer(), data.getOutput(), px + 60, py);
gui.getItemRenderer().zLevel = 0.0F;
gui.drawProgressArrow(px + 27, py + 2, partialTicks);
}
}
use of com.mrcrayfish.furniture.api.RecipeData in project MrCrayfishFurnitureMod by MrCrayfish.
the class PageMineBay method draw.
@Override
public void draw(GuiRecipeBook gui, int x, int y, int mouseX, int mouseY, float partialTicks) {
for (int i = 0; i < recipes.size(); i++) {
int px = x + ((i / 4) * 150);
int py = y + (i % 4 * spacing);
RecipeData data = recipes.get(i);
gui.drawTag(px + 42, py - 1);
gui.getItemRenderer().renderItemAndEffectIntoGUI(data.getInput(), px + 20, py);
gui.getItemRenderer().renderItemOverlayIntoGUI(gui.getFontRenderer(), data.getInput(), px + 20, py, null);
gui.getItemRenderer().renderItemAndEffectIntoGUI(data.getCurrency(), px + 51, py);
gui.getItemRenderer().renderItemOverlayIntoGUI(gui.getFontRenderer(), data.getCurrency(), px + 51, py, null);
gui.getFontRenderer().drawString("x" + Integer.toString(data.getPrice()), px + 68, py + 4, 0);
}
}
use of com.mrcrayfish.furniture.api.RecipeData in project MrCrayfishFurnitureMod by MrCrayfish.
the class PageOven method draw.
@Override
public void draw(GuiRecipeBook gui, int x, int y, int mouseX, int mouseY, float partialTicks) {
for (int i = 0; i < recipes.size(); i++) {
int px = x + ((i / 4) * 150) + 15;
int py = y + ((i % 4) * spacing);
RecipeData data = recipes.get(i);
gui.getItemRenderer().zLevel = 100.0F;
gui.getItemRenderer().renderItemAndEffectIntoGUI(data.getInput(), px, py);
gui.getItemRenderer().renderItemOverlays(gui.getFontRenderer(), data.getInput(), px, py);
gui.getItemRenderer().renderItemAndEffectIntoGUI(data.getOutput(), px + 60, py);
gui.getItemRenderer().renderItemOverlays(gui.getFontRenderer(), data.getOutput(), px + 60, py);
gui.getItemRenderer().zLevel = 0.0F;
gui.drawProgressArrow(px + 27, py + 2, partialTicks);
}
}
use of com.mrcrayfish.furniture.api.RecipeData in project MrCrayfishFurnitureMod by MrCrayfish.
the class PagePrinter method draw.
@Override
public void draw(GuiRecipeBook gui, int x, int y, int mouseX, int mouseY, float partialTicks) {
gui.getFontRenderer().drawString(I18n.format("cfm.recipe_book.page.dishwasher1"), x + 150, 40, 16739840);
gui.getFontRenderer().drawString(I18n.format("cfm.recipe_book.page.printer2"), x + 150, 50, 16739840);
gui.getFontRenderer().drawString(I18n.format("cfm.recipe_book.page.dishwasher1"), x + 4, 40, 16739840);
gui.getFontRenderer().drawString(I18n.format("cfm.recipe_book.page.printer2"), x + 4, 50, 16739840);
for (int i = 0; i < recipes.size(); i++) {
int px = x + ((i % 5) * 20) + ((i / 20) * 145) + 7;
int py = y + ((i / 5) * 20) - ((i / 20) * (4 * 20)) + 30;
RecipeData data = recipes.get(i);
gui.getItemRenderer().zLevel = 100.0F;
gui.getItemRenderer().renderItemAndEffectIntoGUI(data.getInput(), px, py);
gui.getItemRenderer().renderItemOverlays(gui.getFontRenderer(), data.getInput(), px, py);
gui.getItemRenderer().zLevel = 0.0F;
}
}
use of com.mrcrayfish.furniture.api.RecipeData in project MrCrayfishFurnitureMod by MrCrayfish.
the class PageToaster method draw.
@Override
public void draw(GuiRecipeBook gui, int x, int y, int mouseX, int mouseY, float partialTicks) {
for (int i = 0; i < recipes.size(); i++) {
int px = x + ((i / 4) * 150) + 15;
int py = y + ((i % 4) * spacing);
RecipeData data = recipes.get(i);
gui.getItemRenderer().zLevel = 100.0F;
gui.getItemRenderer().renderItemAndEffectIntoGUI(data.getInput(), px, py);
gui.getItemRenderer().renderItemOverlays(gui.getFontRenderer(), data.getInput(), px, py);
gui.getItemRenderer().renderItemAndEffectIntoGUI(data.getOutput(), px + 60, py);
gui.getItemRenderer().renderItemOverlays(gui.getFontRenderer(), data.getOutput(), px + 60, py);
gui.getItemRenderer().zLevel = 0.0F;
gui.drawProgressArrow(px + 27, py + 2, partialTicks);
}
}
Aggregations