Created
August 19, 2014 21:56
-
-
Save witchica/8eda42dd9527e1d4d05e to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package me.modforgery.cc.client; | |
import net.minecraft.client.gui.inventory.GuiContainer; | |
import net.minecraft.entity.player.EntityPlayer; | |
import net.minecraft.inventory.Container; | |
import net.minecraft.util.ResourceLocation; | |
import net.minecraft.world.World; | |
/** | |
* Created by Toby on 19/08/2014. | |
*/ | |
public class GuiDoubleChest extends GuiContainer | |
{ | |
public Container container; | |
public EntityPlayer player; | |
public World world; | |
public int x; | |
public int y; | |
public int z; | |
public ResourceLocation bg; | |
public GuiDoubleChest(Container serverGuiElement, EntityPlayer player, World world, int x, int y, int z) | |
{ | |
super(serverGuiElement); | |
this.container = serverGuiElement; | |
this.player = player; | |
this.world = world; | |
this.x = x; | |
this.y = y; | |
this.z = z; | |
this.xSize = 256; | |
this.ySize = 256; | |
this.bg = new ResourceLocation("compactchests", "textures/gui/container/double_chest.png"); | |
} | |
@Override | |
public void drawGuiContainerBackgroundLayer(float i, int j, int k) | |
{ | |
this.mc.renderEngine.bindTexture(bg); | |
this.drawTexturedModalRect(guiLeft, guiTop, 0, 0, xSize, ySize); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment