Search in sources :

Example 1 with MachineFabricator

use of forestry.factory.gadgets.MachineFabricator in project ForestryMC by ForestryMC.

the class GuiFabricator method drawGuiContainerBackgroundLayer.

@Override
protected void drawGuiContainerBackgroundLayer(float var1, int mouseX, int mouseY) {
    super.drawGuiContainerBackgroundLayer(var1, mouseX, mouseY);
    MachineFabricator fabricator = inventory;
    int heatScaled = fabricator.getHeatScaled(52);
    if (heatScaled > 0) {
        drawTexturedModalRect(guiLeft + 55, guiTop + 17 + 52 - heatScaled, 192, 52 - heatScaled, 4, heatScaled);
    }
    int meltingPointScaled = fabricator.getMeltingPointScaled(52);
    if (meltingPointScaled > 0) {
        drawTexturedModalRect(guiLeft + 52, guiTop + 15 + 52 - meltingPointScaled, 196, 0, 10, 5);
    }
}
Also used : MachineFabricator(forestry.factory.gadgets.MachineFabricator)

Aggregations

MachineFabricator (forestry.factory.gadgets.MachineFabricator)1