Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package com.tristanvo.mod.gui;
- import org.lwjgl.opengl.GL11;
- import com.tristanvo.mod.blocks.moriumWorkbench;
- import cpw.mods.fml.relauncher.Side;
- import cpw.mods.fml.relauncher.SideOnly;
- import net.minecraft.client.gui.inventory.GuiContainer;
- import net.minecraft.client.resources.I18n;
- import net.minecraft.entity.player.InventoryPlayer;
- import net.minecraft.inventory.ContainerWorkbench;
- import net.minecraft.util.ResourceLocation;
- import net.minecraft.world.World;
- @SideOnly(Side.CLIENT)
- public class GuiCrafting extends GuiContainer
- {
- private static final ResourceLocation moriumWorkbenchGuiTextures = new ResourceLocation("textures/gui/container/morium_workbench.png");
- public GuiCrafting(InventoryPlayer inventory, moriumWorkbench te)
- {
- super(new ContainerModTileEntity(inventory, te));
- }
- protected void drawGuiContainerForegroundLayer(int par1, int par2)
- {
- this.fontRendererObj.drawString(I18n.format("container.crafting", new Object[0]), 28, 6, 4210752);
- this.fontRendererObj.drawString(I18n.format("container.inventory", new Object[0]), 8, this.ySize - 96 + 2, 4210752);
- }
- protected void drawGuiContainerBackgroundLayer(float par1, int par2, int par3)
- {
- GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
- this.mc.getTextureManager().bindTexture(moriumWorkbenchGuiTextures);
- int k = (this.width - this.xSize) / 2;
- int l = (this.height - this.ySize) / 2;
- this.drawTexturedModalRect(k, l, 0, 0, this.xSize, this.ySize);
- }
- }
Add Comment
Please, Sign In to add comment