package minefantasy.mf2.client.gui;
import minefantasy.mf2.block.tileentity.TileEntityBombBench;
import minefantasy.mf2.api.helpers.TextureHelperMF;
import minefantasy.mf2.container.ContainerBombBench;
import net.minecraft.client.gui.inventory.GuiContainer;
import net.minecraft.entity.player.InventoryPlayer;
import net.minecraft.util.StatCollector;
import org.lwjgl.opengl.GL11;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
@SideOnly(Side.CLIENT)
public class GuiBombBench extends GuiContainer
{
private TileEntityBombBench tile;
public GuiBombBench(InventoryPlayer user, TileEntityBombBench tile)
{
super(new ContainerBombBench(user, tile));
this.ySize = 208;
this.tile = tile;
}
/**
* Draw the foreground layer for the GuiContainer (everything in front of the items)
*/
@Override
protected void drawGuiContainerForegroundLayer(int x, int y)
{
String s = StatCollector.translateToLocal("tile.bombBench.name");
//this.fontRendererObj.drawString(s, 10, 6, 0);
int xPoint = (this.width - this.xSize) / 2;
int yPoint = (this.height - this.ySize) / 2;
}
@Override
protected void drawGuiContainerBackgroundLayer(float f, int x, int y)
{
GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
this.mc.getTextureManager().bindTexture(TextureHelperMF.getResource("textures/gui/bombCraft.png"));
int xPoint = (this.width - this.xSize) / 2;
int yPoint = (this.height - this.ySize) / 2;
this.drawTexturedModalRect(xPoint, yPoint, 0, 0, this.xSize, this.ySize);
}
@Override
public void drawScreen(int x, int y, float f)
{
super.drawScreen(x, y, f);
}
}