1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
package darkknight.jewelrycraft.client.gui;
import org.lwjgl.opengl.GL11;
import darkknight.jewelrycraft.client.gui.container.ContainerRingChest;
import net.minecraft.client.Minecraft;
import net.minecraft.client.gui.inventory.GuiContainer;
import net.minecraft.util.ResourceLocation;
public class GuiRingChest extends GuiContainer {
public ContainerRingChest container;
ResourceLocation texture;
/**
* @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(texture);
drawTexturedModalRect(guiLeft, guiTop, 0, 0, xSize, ySize);
}
/**
* @param mouseX
* @param mouseY
*/
@Override
public void drawGuiContainerForegroundLayer(int mouseX,
int mouseY) {
fontRendererObj.drawString("Linked Chest", 8, 6, 0x404040);
fontRendererObj.drawString("Inventory", 8, 72, 0x404040);
}
}
|