44 lines
1.7 KiB
Java
44 lines
1.7 KiB
Java
package mods.tinker.tconstruct.client.gui;
|
|
|
|
import mods.tinker.tconstruct.blocks.logic.GlowstoneAggregator;
|
|
import net.minecraft.client.gui.inventory.GuiContainer;
|
|
import net.minecraft.entity.player.InventoryPlayer;
|
|
import net.minecraft.util.StatCollector;
|
|
import net.minecraft.world.World;
|
|
|
|
import org.lwjgl.opengl.GL11;
|
|
|
|
public class GlowstoneAggregatorGui extends GuiContainer
|
|
{
|
|
public GlowstoneAggregator logic;
|
|
|
|
public GlowstoneAggregatorGui(InventoryPlayer inventoryplayer, GlowstoneAggregator frypan, World world, int x, int y, int z)
|
|
{
|
|
super(frypan.getGuiContainer(inventoryplayer, world, x, y, z));
|
|
logic = frypan;
|
|
}
|
|
|
|
protected void drawGuiContainerForegroundLayer(int par1, int par2)
|
|
{
|
|
//fontRenderer.drawString(StatCollector.translateToLocal("aggregator.glowstone"), 60, 6, 0x404040);
|
|
fontRenderer.drawString("Glowstone Aggregator", 8, 6, 0x404040);
|
|
fontRenderer.drawString(StatCollector.translateToLocal("container.inventory"), 8, (ySize - 96) + 2, 0x404040);
|
|
}
|
|
|
|
protected void drawGuiContainerBackgroundLayer(float f, int i, int j)
|
|
{
|
|
GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
|
|
mc.renderEngine.bindTexture("/mods/tinker/textures/gui/aggregator.png");
|
|
int cornerX = (width - xSize) / 2;
|
|
int cornerY = (height - ySize) / 2;
|
|
drawTexturedModalRect(cornerX, cornerY, 0, 0, xSize, ySize);
|
|
/*if (logic.fuel > 0)
|
|
{
|
|
int fuel = logic.gaugeFuelScaled(12);
|
|
drawTexturedModalRect(cornerX + 27, (cornerY + 40) - fuel, 176, 12 - fuel, 14, fuel + 2);
|
|
}
|
|
int fuelgague = logic.gaugeProgressScaled(24);
|
|
drawTexturedModalRect(cornerX + 140, cornerY + 8, 176, 14, fuelgague, 16);*/
|
|
}
|
|
}
|