OSDN Git Service

テクスチャ修正
[chemicraft/chemicraft.git] / common / chemicraft / GuiMaterialCraftingTable.java
1 package chemicraft;
2
3 import cpw.mods.fml.common.Side;
4 import cpw.mods.fml.common.asm.SideOnly;
5 import net.minecraft.src.Container;
6 import net.minecraft.src.EntityPlayer;
7 import net.minecraft.src.GuiContainer;
8 import net.minecraft.src.InventoryPlayer;
9
10 @SideOnly(Side.CLIENT)
11 public class GuiMaterialCraftingTable extends GuiContainer {
12
13         /**
14          * the TileEntity.
15          */
16         private TileEntityMaterialCraftingTable tileEntity;
17
18
19         /**
20          * the InventoryPlayer.
21          */
22         private InventoryPlayer inventoryPlayer;
23
24
25         /**
26          * the Container
27          */
28         private ContainerMaterialCraftingTable container;
29
30
31
32         public GuiMaterialCraftingTable(EntityPlayer par1EntityPlayer, TileEntityMaterialCraftingTable par2){
33                 super(new ContainerMaterialCraftingTable(par1EntityPlayer, par2));
34                 this.inventoryPlayer = par1EntityPlayer.inventory;
35                 this.tileEntity = par2;
36                 this.container = (ContainerMaterialCraftingTable) this.inventorySlots;
37         }
38
39
40
41         @Override
42         protected void drawGuiContainerBackgroundLayer(float par1, int par2, int par3){
43                 this.mc.renderEngine.bindTexture(this.mc.renderEngine.getTexture(ChemiCraft.instance.guiMaterialCraftingTexture));
44                 this.drawTexturedModalRect(this.guiLeft, this.guiTop, 0, 0, this.xSize, this.ySize);
45         }
46
47 }