2013-07-26 21:18:53 -07:00
|
|
|
package tconstruct.client.gui;
|
|
|
|
|
|
|
|
|
|
import net.minecraft.client.gui.inventory.GuiContainer;
|
|
|
|
|
import net.minecraft.entity.player.InventoryPlayer;
|
|
|
|
|
import net.minecraft.util.ResourceLocation;
|
|
|
|
|
import net.minecraft.util.StatCollector;
|
|
|
|
|
import net.minecraft.world.World;
|
|
|
|
|
|
|
|
|
|
import org.lwjgl.opengl.GL11;
|
|
|
|
|
|
|
|
|
|
import tconstruct.blocks.logic.PatternChestLogic;
|
|
|
|
|
|
|
|
|
|
public class PatternChestGui extends GuiContainer
|
|
|
|
|
{
|
|
|
|
|
public PatternChestLogic logic;
|
|
|
|
|
|
|
|
|
|
public PatternChestGui(InventoryPlayer inventoryplayer, PatternChestLogic holder, World world, int x, int y, int z)
|
|
|
|
|
{
|
|
|
|
|
super(holder.getGuiContainer(inventoryplayer, world, x, y, z));
|
|
|
|
|
logic = holder;
|
2014-02-01 14:18:17 -05:00
|
|
|
field_146999_f = 194;
|
|
|
|
|
field_147000_g = 168;
|
2013-07-26 21:18:53 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
protected void drawGuiContainerForegroundLayer (int par1, int par2)
|
|
|
|
|
{
|
2014-01-08 00:45:09 -05:00
|
|
|
field_146289_q.drawString(StatCollector.translateToLocal("inventory.PatternChest"), 60, 6, 0x404040);
|
2014-02-01 14:18:17 -05:00
|
|
|
field_146289_q.drawString(StatCollector.translateToLocal("container.inventory"), 17, (field_147000_g - 96) + 2, 0x404040);
|
2013-07-26 21:18:53 -07:00
|
|
|
}
|
2013-08-31 05:13:31 -07:00
|
|
|
|
2013-07-26 21:18:53 -07:00
|
|
|
private static final ResourceLocation background = new ResourceLocation("tinker", "textures/gui/patternchest.png");
|
2013-08-31 05:13:31 -07:00
|
|
|
|
2014-02-01 14:18:17 -05:00
|
|
|
protected void func_146976_a (float f, int i, int j)
|
2013-07-26 21:18:53 -07:00
|
|
|
{
|
|
|
|
|
GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
|
2014-01-08 00:45:09 -05:00
|
|
|
this.field_146297_k.getTextureManager().bindTexture(background);
|
2014-02-01 14:18:17 -05:00
|
|
|
int cornerX = (field_146294_l - field_146999_f) / 2;
|
|
|
|
|
int cornerY = (field_146295_m - field_147000_g) / 2;
|
|
|
|
|
drawTexturedModalRect(cornerX, cornerY, 0, 0, field_146999_f, field_147000_g);
|
2013-07-26 21:18:53 -07:00
|
|
|
}
|
|
|
|
|
}
|