Some small tweaks to the blast furnace, not tested

This commit is contained in:
modmuss50 2015-05-01 19:50:31 +01:00
parent 4409aec56a
commit 2616894527
4 changed files with 25 additions and 3 deletions

View file

@ -1,5 +1,7 @@
package techreborn.client.gui;
import codechicken.nei.recipe.GuiUsageRecipe;
import net.minecraft.client.gui.GuiButton;
import net.minecraft.client.gui.inventory.GuiContainer;
import net.minecraft.client.resources.I18n;
import net.minecraft.entity.player.EntityPlayer;
@ -22,6 +24,7 @@ public class GuiBlastFurnace extends GuiContainer {
this.xSize = 176;
this.ySize = 167;
blastfurnace = tileblastfurnace;
this.buttonList.add(new GuiButton(0, 0, 0, 20, 20, "R"));
}
@Override
@ -43,4 +46,13 @@ public class GuiBlastFurnace extends GuiContainer {
I18n.format("container.inventory", new Object[0]), 8,
this.ySize - 96 + 2, 4210752);
}
@Override
protected void actionPerformed(GuiButton button) {
super.actionPerformed(button);
if(button.id == 0){
GuiUsageRecipe.openRecipeGui(rect.outputId, rect.results)
}
}
}