package game.gui.container; import game.Game; import game.inventory.ContainerMachine; import game.inventory.IInventory; import game.inventory.InventoryPlayer; import game.tileentity.TileEntityMachine; public class GuiMachine extends GuiContainer { // private final String texture; private final IInventory playerInv; private final IInventory machineInv; private final TileEntityMachine machine; public GuiMachine(InventoryPlayer player, IInventory inv, TileEntityMachine machine) { super(new ContainerMachine(player, machine, inv, Game.getGame().thePlayer)); this.playerInv = player; this.machineInv = machine; // this.allowUserInput = false; this.ySize = 153; // this.texture = "textures/gui/" + texture + ".png"; this.machine = machine; } public void drawGuiContainerForegroundLayer() { this.drawString(this.machine.getStatus().color + this.machineInv.getCommandName() + " - " + this.machine.getStatus().name, 8, 6); this.drawString(this.playerInv.getCommandName(), 8, this.ySize - 96 + 2); this.drawString(String.format("Temperatur: %d °", this.machine.getTemperature()), 8, 18); this.drawString(this.machine.formatDisplay(), 8, 28); } // protected void drawGuiContainerBackgroundLayer(int mouseX, int mouseY) // { // GlState.color(1.0F, 1.0F, 1.0F, 1.0F); // this.gm.getTextureManager().bindTexture(this.texture); // int i = (this.width - this.xSize) / 2; // int j = (this.height - this.ySize) / 2; //// this.rect(i, j, 0, 0, this.xSize, this.ySize); // } }