diff options
| author | OnyxDarkKnight <sor1n.iliutza16@gmail.com> | 2015-02-21 21:31:16 +0000 |
|---|---|---|
| committer | OnyxDarkKnight <sor1n.iliutza16@gmail.com> | 2015-02-21 21:31:16 +0000 |
| commit | 420faddca46e70e3a70def168fb4e452ef193b0d (patch) | |
| tree | 247e334012e4bf9e4fa6d42718bf601ce6bd42d9 /java/darkknight/jewelrycraft/client/GuiRingChest.java | |
| parent | 3f4c717de5ebc9b942d65ae45ac87c43bdf8a31b (diff) | |
Added just a butt ton of stuff, also thanks to pau101 for helping me with the Hand Pedestal animation :)
Diffstat (limited to 'java/darkknight/jewelrycraft/client/GuiRingChest.java')
| -rw-r--r-- | java/darkknight/jewelrycraft/client/GuiRingChest.java | 27 |
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) { |
