Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class GuiForge extends GuiContainer
- {
- public static final ResourceLocation texture = new ResourceLocation(SkyrimMain.modid, "textures/gui/Forge.png");
- public TileEntityForge forge;
- public GuiForge(InventoryPlayer inventoryPlayer, TileEntityForge entity)
- {
- super(new ContainerForge(inventoryPlayer, entity));
- this.forge = entity;
- this.xSize = 176;
- this.ySize = 166;
- }
- public void drawGuiContainerForegroundLayer(int par1, int par2)
- {
- String name = this.forge.isInvNameLocalized() ? this.forge.getInvName() : I18n.getString(this.forge.getInvName());
- this.fontRenderer.drawString(name, this.xSize / 2 - this.fontRenderer.getStringWidth(name) / 2, 6, 4210752);
- this.fontRenderer.drawString(I18n.getString("container.inventory"), 8, this.ySize - 96 + 2, 4210752);
- }
- public void drawGuiContainerBackgroundLayer(float f, int i, int j)
- {
- GL11.glColor4f(1F, 1F, 1F, 1F);
- Minecraft.getMinecraft().getTextureManager().bindTexture(texture);
- drawTexturedModalRect(guiLeft, guiTop, 0, 0, xSize, ySize);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment