summaryrefslogtreecommitdiff
path: root/java/darkknight/jewelrycraft/client/GuiRingChest.java
diff options
context:
space:
mode:
Diffstat (limited to 'java/darkknight/jewelrycraft/client/GuiRingChest.java')
-rw-r--r--java/darkknight/jewelrycraft/client/GuiRingChest.java27
1 files changed, 19 insertions, 8 deletions
diff --git a/java/darkknight/jewelrycraft/client/GuiRingChest.java b/java/darkknight/jewelrycraft/client/GuiRingChest.java
index f711558..2504d6f 100644
--- a/java/darkknight/jewelrycraft/client/GuiRingChest.java
+++ b/java/darkknight/jewelrycraft/client/GuiRingChest.java
@@ -1,35 +1,46 @@
package darkknight.jewelrycraft.client;
-import org.lwjgl.opengl.GL11;
-
-import darkknight.jewelrycraft.container.ContainerRingChest;
-
import net.minecraft.client.Minecraft;
import net.minecraft.client.gui.inventory.GuiContainer;
import net.minecraft.util.ResourceLocation;
+import org.lwjgl.opengl.GL11;
+import darkknight.jewelrycraft.container.ContainerRingChest;
public class GuiRingChest extends GuiContainer
{
public ContainerRingChest container;
+ ResourceLocation texture;
- public GuiRingChest(ContainerRingChest container)
+ /**
+ * @param container
+ * @param texture
+ */
+ public GuiRingChest(ContainerRingChest container, ResourceLocation texture)
{
super(container);
this.container = container;
xSize = 176;
ySize = 166;
+ this.texture = texture;
}
+ /**
+ * @param f
+ * @param mouseX
+ * @param mouseY
+ */
@Override
public void drawGuiContainerBackgroundLayer(float f, int mouseX, int mouseY)
{
GL11.glColor3f(1, 1, 1);
-
- Minecraft.getMinecraft().getTextureManager().bindTexture(new ResourceLocation("jewelrycraft", "textures/gui/chest_ring.png"));
-
+ Minecraft.getMinecraft().getTextureManager().bindTexture(texture);
drawTexturedModalRect(guiLeft, guiTop, 0, 0, xSize, ySize);
}
+ /**
+ * @param mouseX
+ * @param mouseY
+ */
@Override
public void drawGuiContainerForegroundLayer(int mouseX, int mouseY)
{