Added recipe buttons
This commit is contained in:
parent
2157fe1cb4
commit
aaee829f3b
4 changed files with 44 additions and 0 deletions
|
@ -1,5 +1,6 @@
|
|||
package techreborn.client.gui;
|
||||
|
||||
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;
|
||||
|
@ -27,6 +28,16 @@ public class GuiAssemblingMachine extends GuiContainer {
|
|||
this.ySize = 167;
|
||||
assemblinmachine = tileassemblinmachine;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void initGui() {
|
||||
|
||||
this.buttonList.clear();
|
||||
int k = (this.width - this.xSize) / 2;
|
||||
int l = (this.height - this.ySize) / 2;
|
||||
this.buttonList.add(new GuiButton(0, k + 4, l + 4, 20, 20, "R"));
|
||||
super.initGui();
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void drawGuiContainerBackgroundLayer(float p_146976_1_,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue