Removed fluid tank from IndustrialElectrolyzer closes #58

This commit is contained in:
gigabit101 2015-07-02 23:39:36 +01:00
parent b7a9824cd3
commit 26eff9bcbf
7 changed files with 14 additions and 186 deletions

View file

@ -33,9 +33,6 @@ public class ContainerIndustrialElectrolyzer extends ContainerCrafting {
this.addSlotToContainer(new SlotOutput(electrolyzer.inventory, 3, 70, 19));
this.addSlotToContainer(new SlotOutput(electrolyzer.inventory, 4, 90, 19));
this.addSlotToContainer(new SlotOutput(electrolyzer.inventory, 5, 110, 19));
// power
this.addSlotToContainer(new Slot(electrolyzer.inventory, 6, 8, 51));
int i;
for (i = 0; i < 3; ++i)

View file

@ -40,25 +40,6 @@ public class GuiIndustrialElectrolyzer extends GuiContainer {
int k = (this.width - this.xSize) / 2;
int l = (this.height - this.ySize) / 2;
this.drawTexturedModalRect(k, l, 0, 0, this.xSize, this.ySize);
if (eletrolyzer.tank.getFluidAmount() != 0)
{
IIcon fluidIcon = eletrolyzer.tank.getFluid().getFluid().getIcon();
if (fluidIcon != null)
{
drawTexturedModalRect(k + 7, l + 15, 176, 31, 20, 55);
this.mc.renderEngine
.bindTexture(TextureMap.locationBlocksTexture);
int liquidHeight = eletrolyzer.tank.getFluidAmount() * 47
/ eletrolyzer.tank.getCapacity();
DrawUtil.drawRepeated(fluidIcon, k + 11, l + 19 + 47
- liquidHeight, 12.0D, liquidHeight, this.zLevel);
this.mc.renderEngine.bindTexture(texture);
drawTexturedModalRect(k + 11, l + 19, 176, 86, 12, 47);
}
}
}
protected void drawGuiContainerForegroundLayer(int p_146979_1_,