package teamasm.moh.client.gui;

import net.minecraft.client.gui.inventory.GuiContainer;
import net.minecraft.entity.player.InventoryPlayer;
import teamasm.moh.container.ContainerReducerCrusher;
import teamasm.moh.tile.machines.teir1.TileReducerCrusher;

/**
 * Created by Gigabit101 on 05/08/2016.
 */
public class GuiReducerCrusher extends GuiContainer {
    private TileReducerCrusher tileReducerCrusher;

    public GuiReducerCrusher(InventoryPlayer inventoryPlayer, TileReducerCrusher tileReducerCrusher) {
        super(new ContainerReducerCrusher(inventoryPlayer, tileReducerCrusher));
        this.tileReducerCrusher = tileReducerCrusher;
    }

    @Override
    protected void drawGuiContainerBackgroundLayer(float partialTicks, int mouseX, int mouseY) {
        GuiUtils.drawDefaultBackground(this, guiLeft, guiTop, xSize, ySize);
        GuiUtils.drawEnergyBar(this, guiLeft + 5, guiTop + 5, 70, tileReducerCrusher.getWorld().rand.nextInt(512000), 512000, mouseX, mouseY);
        GuiUtils.drawPlayerSlots(this, guiLeft + xSize / 2, guiTop + 80, true);
    }
}

@@ -130,24 +130,62 @@
 toryPlayer;%0A
+import net.minecraft.util.EnumFacing;%0A
 import teama
@@ -869,24 +869,228 @@
 ze, ySize);%0A
+        GuiUtils.drawString(this, %22Reducer Crusher%22, guiLeft + 45, guiTop + 10);%0A        GuiUtils.drawSlot(this, guiLeft + 40, guiTop + 30);%0A        GuiUtils.drawSlot(this, guiLeft + 120, guiTop + 30);%0A%0A%0A
         GuiU
@@ -1169,44 +1169,93 @@
 .get
-World().rand.nextInt(512000), 512000
+EnergyStored(EnumFacing.DOWN), tileReducerCrusher.getMaxEnergyStored(EnumFacing.DOWN)
 , mo

add energy bar last or tooltip overlaps others