added the button to the centrifuge
This commit is contained in:
parent
39492fadbd
commit
2ae61a7625
2 changed files with 12 additions and 1 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;
|
||||
|
@ -43,4 +44,14 @@ public class GuiCentrifuge extends GuiContainer {
|
|||
this.fontRendererObj.drawString(centrifuge.tickTime + " "
|
||||
+ centrifuge.isRunning, 110, this.ySize - 96 + 2, 4210752);
|
||||
}
|
||||
|
||||
@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();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -140,7 +140,7 @@ public class CentrifugeRecipeHandler extends TemplateRecipeHandler {
|
|||
public void loadTransferRects()
|
||||
{
|
||||
this.transferRects.add(new TemplateRecipeHandler.RecipeTransferRect(
|
||||
new Rectangle(75, 22, 15, 13), "tr.centrifuge", new Object[0]));
|
||||
new Rectangle(0, 0, 20, 20), "tr.centrifuge", new Object[0]));
|
||||
}
|
||||
|
||||
public void loadCraftingRecipes(String outputId, Object... results)
|
||||
|
|
Loading…
Reference in a new issue