Search in sources :

Example 1 with WidgetTemperature

use of pneumaticCraft.client.gui.widget.WidgetTemperature in project PneumaticCraft by MineMaarten.

the class GuiAdvancedAirCompressor method initGui.

@Override
public void initGui() {
    super.initGui();
    addWidget(new WidgetTemperature(0, guiLeft + 87, guiTop + 20, 273, 675, ((IHeatExchanger) te).getHeatExchangerLogic(ForgeDirection.UNKNOWN), 325, 625));
}
Also used : IHeatExchanger(pneumaticCraft.api.tileentity.IHeatExchanger) WidgetTemperature(pneumaticCraft.client.gui.widget.WidgetTemperature)

Example 2 with WidgetTemperature

use of pneumaticCraft.client.gui.widget.WidgetTemperature in project PneumaticCraft by MineMaarten.

the class GuiAdvancedLiquidCompressor method initGui.

@Override
public void initGui() {
    super.initGui();
    addWidget(new WidgetTemperature(0, guiLeft + 92, guiTop + 20, 273, 675, ((IHeatExchanger) te).getHeatExchangerLogic(ForgeDirection.UNKNOWN), 325, 625));
}
Also used : IHeatExchanger(pneumaticCraft.api.tileentity.IHeatExchanger) WidgetTemperature(pneumaticCraft.client.gui.widget.WidgetTemperature)

Example 3 with WidgetTemperature

use of pneumaticCraft.client.gui.widget.WidgetTemperature in project PneumaticCraft by MineMaarten.

the class GuiRefinery method initGui.

@Override
public void initGui() {
    super.initGui();
    addWidget(new WidgetTemperature(-1, guiLeft + 32, guiTop + 20, 273, 673, te.getHeatExchangerLogic(ForgeDirection.UNKNOWN), 373));
    addWidget(new WidgetTank(-1, guiLeft + 8, guiTop + 13, te.getOilTank()));
    int x = guiLeft + 95;
    int y = guiTop + 17;
    addWidget(new WidgetTank(-1, x, y, te.getOutputTank()));
    refineries = new ArrayList<TileEntityRefinery>();
    refineries.add(te);
    TileEntityRefinery refinery = te;
    while (refinery.getTileCache()[ForgeDirection.UP.ordinal()].getTileEntity() instanceof TileEntityRefinery) {
        refinery = (TileEntityRefinery) refinery.getTileCache()[ForgeDirection.UP.ordinal()].getTileEntity();
        x += 20;
        y -= 4;
        if (refineries.size() < 4)
            addWidget(new WidgetTank(-1, x, y, refinery.getOutputTank()));
        refineries.add(refinery);
    }
    if (refineries.size() < 2 || refineries.size() > 4) {
        problemTab.openWindow();
    }
}
Also used : TileEntityRefinery(pneumaticCraft.common.tileentity.TileEntityRefinery) WidgetTemperature(pneumaticCraft.client.gui.widget.WidgetTemperature) WidgetTank(pneumaticCraft.client.gui.widget.WidgetTank) Point(java.awt.Point)

Example 4 with WidgetTemperature

use of pneumaticCraft.client.gui.widget.WidgetTemperature in project PneumaticCraft by MineMaarten.

the class GuiFluxCompressor method initGui.

@Override
public void initGui() {
    super.initGui();
    inputStat = addAnimatedStat("Input", (ItemStack) null, 0xFF555555, false);
    addWidget(new WidgetEnergy(guiLeft + 20, guiTop + 20, te));
    addWidget(new WidgetTemperature(0, guiLeft + 87, guiTop + 20, 273, 675, ((IHeatExchanger) te).getHeatExchangerLogic(ForgeDirection.UNKNOWN), 325, 625));
}
Also used : IHeatExchanger(pneumaticCraft.api.tileentity.IHeatExchanger) WidgetTemperature(pneumaticCraft.client.gui.widget.WidgetTemperature) ItemStack(net.minecraft.item.ItemStack)

Example 5 with WidgetTemperature

use of pneumaticCraft.client.gui.widget.WidgetTemperature in project PneumaticCraft by MineMaarten.

the class GuiPneumaticGenerator method initGui.

@Override
public void initGui() {
    super.initGui();
    outputStat = addAnimatedStat("Output", IC2Items.getItem("glassFiberCableItem"), 0xFF555555, false);
    addWidget(new WidgetTemperature(0, guiLeft + 87, guiTop + 20, 273, 675, ((IHeatExchanger) te).getHeatExchangerLogic(ForgeDirection.UNKNOWN), 325, 625));
}
Also used : IHeatExchanger(pneumaticCraft.api.tileentity.IHeatExchanger) WidgetTemperature(pneumaticCraft.client.gui.widget.WidgetTemperature)

Aggregations

WidgetTemperature (pneumaticCraft.client.gui.widget.WidgetTemperature)9 IHeatExchanger (pneumaticCraft.api.tileentity.IHeatExchanger)6 ItemStack (net.minecraft.item.ItemStack)3 WidgetTank (pneumaticCraft.client.gui.widget.WidgetTank)3 Point (java.awt.Point)2 ArrayList (java.util.ArrayList)1 GuiAnimatedStat (pneumaticCraft.client.gui.widget.GuiAnimatedStat)1 GuiCheckBox (pneumaticCraft.client.gui.widget.GuiCheckBox)1 TileEntityRefinery (pneumaticCraft.common.tileentity.TileEntityRefinery)1