Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package com.tristanvo.mod;
- import org.lwjgl.opengl.GL11;
- 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.util.StatCollector;
- import net.minecraft.world.World;
- public class GuiMoriumWorkbench extends GuiContainer {
- private ResourceLocation texture = new ResourceLocation(Reference.MOD_ID + ":" + "textures/gui/morium_workbench.png");
- public GuiMoriumWorkbench(InventoryPlayer player, World world, int x, int y, int z) {
- super(new ContainerMoriumWorkbench(player, world, x, y, z));
- this.xSize = 176;
- this.ySize = 166;
- }
- public void onGuiClosed() {
- super.onGuiClosed();
- }
- protected void drawGuiContainerForegroundLayer(int i, int j) {
- this.fontRendererObj.drawString(StatCollector.translateToLocal("Work Bench"), 100, 5, 0x000000);
- }
- @Override
- protected void drawGuiContainerBackgroundLayer(float p_146976_1_, int p_146976_2_, int p_146976_3_) {
- GL11.glColor4f(1F, 1F, 1F, 1F);
- Minecraft.getMinecraft().getTextureManager().bindTexture(texture);
- drawTexturedModalRect(guiLeft, guiTop, 0, 0, xSize, ySize);
- }
- }
Add Comment
Please, Sign In to add comment