Пример #1
0
 @Override
 public void drawBackground(int recipe) {
   GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
   GuiDraw.changeTexture(getGuiTexture());
   GuiDraw.drawTexturedModalRect(0, 0, 0, 0, 166, 65);
   if (((CachedHeatRecipe) this.arecipes.get(recipe)).isBlockRecipe)
     GUIHelper.DrawStringCentered(
         GuiDraw.fontRenderer, StringHelper.localize("gui.placed"), 26, 44, Colours.BLACK);
   int heat = ((CachedHeatRecipe) this.arecipes.get(recipe)).heatRequired;
   GUIHelper.DrawStringCentered(GuiDraw.fontRenderer, "" + heat, 84, 22, Colours.RED);
   GUIHelper.DrawStringCentered(
       GuiDraw.fontRenderer, StringHelper.localize("gui.heat"), 84, 34, Colours.RED);
 }
Пример #2
0
 @Override
 public String getRecipeName() {
   return StringHelper.localize("gui.heat") + " " + StringHelper.localize("gui.recipes");
 }