2016-01-18 02:00:48 +00:00
|
|
|
package WayofTime.bloodmagic.client.gui;
|
|
|
|
|
2016-03-17 20:00:44 +00:00
|
|
|
import WayofTime.bloodmagic.api.Constants;
|
|
|
|
import WayofTime.bloodmagic.tile.container.ContainerMasterRoutingNode;
|
2016-01-18 02:00:48 +00:00
|
|
|
import net.minecraft.client.gui.inventory.GuiContainer;
|
|
|
|
import net.minecraft.client.renderer.GlStateManager;
|
|
|
|
import net.minecraft.entity.player.InventoryPlayer;
|
|
|
|
import net.minecraft.inventory.IInventory;
|
|
|
|
import net.minecraft.tileentity.TileEntity;
|
|
|
|
import net.minecraft.util.ResourceLocation;
|
|
|
|
import net.minecraftforge.fml.relauncher.Side;
|
|
|
|
import net.minecraftforge.fml.relauncher.SideOnly;
|
|
|
|
|
|
|
|
@SideOnly(Side.CLIENT)
|
|
|
|
public class GuiMasterRoutingNode extends GuiContainer
|
|
|
|
{
|
|
|
|
private TileEntity inventory;
|
|
|
|
|
|
|
|
public GuiMasterRoutingNode(InventoryPlayer playerInventory, IInventory tileRoutingNode)
|
|
|
|
{
|
|
|
|
super(new ContainerMasterRoutingNode(playerInventory, tileRoutingNode));
|
|
|
|
this.xSize = 216;
|
|
|
|
this.ySize = 216;
|
|
|
|
inventory = (TileEntity) tileRoutingNode;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
protected void drawGuiContainerForegroundLayer(int mouseX, int mouseY)
|
|
|
|
{
|
|
|
|
// this.fontRendererObj.drawString(TextHelper.localize("tile.BloodMagic.soulForge.name"), 8, 5, 4210752);
|
|
|
|
// this.fontRendererObj.drawString(TextHelper.localize("container.inventory"), 8, 111, 4210752);
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
protected void drawGuiContainerBackgroundLayer(float partialTicks, int mouseX, int mouseY)
|
|
|
|
{
|
|
|
|
GlStateManager.color(1.0F, 1.0F, 1.0F, 1.0F);
|
|
|
|
ResourceLocation soulForgeGuiTextures = new ResourceLocation(Constants.Mod.MODID + ":textures/gui/masterRoutingNode.png");
|
|
|
|
this.mc.getTextureManager().bindTexture(soulForgeGuiTextures);
|
|
|
|
int i = (this.width - this.xSize) / 2;
|
|
|
|
int j = (this.height - this.ySize) / 2;
|
|
|
|
this.drawTexturedModalRect(i, j, 0, 0, this.xSize, this.ySize);
|
|
|
|
}
|
|
|
|
}
|