package com.miningmark48.pearcelmod.gui;
import com.miningmark48.pearcelmod.container.ContainerPCP;
import com.miningmark48.pearcelmod.container.ContainerPearcelWorkbench;
import com.miningmark48.pearcelmod.reference.Reference;
import com.miningmark48.pearcelmod.utility.GuiUtils;
import com.miningmark48.pearcelmod.utility.Translate;
import net.minecraft.client.Minecraft;
import net.minecraft.client.gui.inventory.GuiContainer;
import net.minecraft.entity.player.InventoryPlayer;
import net.minecraft.util.ResourceLocation;
import net.minecraft.world.World;
import org.lwjgl.opengl.GL11;
public class GuiPCP extends GuiContainer{
private ResourceLocation texture = new ResourceLocation(Reference.MOD_ID + ":textures/gui/gui_pearcel_workbench.png");
public GuiPCP(InventoryPlayer player, World world, int x, int y, int z){
super(new ContainerPCP(player, world, x, y, z));
this.xSize = 176;
this.ySize = 166;
}
public void onGuiClosed(){
super.onGuiClosed();
}
protected void drawGuiContainerForegroundLayer(int i, int j){
String text = Translate.toLocal("gui.pcp.name");
int x = GuiUtils.getXCenter(text, this.fontRendererObj, xSize);
this.fontRendererObj.drawString(text, x, 5, 0x404040);
}
@Override
protected void drawGuiContainerBackgroundLayer(float var1, int var2, int var3) {
GL11.glColor4f(1F, 1F, 1F, 1F);
Minecraft.getMinecraft().getTextureManager().bindTexture(texture);
drawTexturedModalRect(guiLeft, guiTop, 0, 0, xSize, ySize);
}
}