diff options
author | miozune <miozune@gmail.com> | 2023-09-10 16:34:53 +0900 |
---|---|---|
committer | miozune <miozune@gmail.com> | 2023-09-10 16:35:17 +0900 |
commit | 84b4d11e693439e87687c5d636497ed61de9402c (patch) | |
tree | 1c25b7e29773194b6a5d9a9389c46af04a319119 /src/main/java/client/gui | |
parent | 3dfd657c27f0efe2e20841a3e93a92c7881e8f6f (diff) | |
download | GT5-Unofficial-84b4d11e693439e87687c5d636497ed61de9402c.tar.gz GT5-Unofficial-84b4d11e693439e87687c5d636497ed61de9402c.tar.bz2 GT5-Unofficial-84b4d11e693439e87687c5d636497ed61de9402c.zip |
Remove Item Proxy things
Diffstat (limited to 'src/main/java/client/gui')
-rw-r--r-- | src/main/java/client/gui/Gui_ItemProxyEndpoint.java | 55 | ||||
-rw-r--r-- | src/main/java/client/gui/Gui_ItemProxySource.java | 53 |
2 files changed, 0 insertions, 108 deletions
diff --git a/src/main/java/client/gui/Gui_ItemProxyEndpoint.java b/src/main/java/client/gui/Gui_ItemProxyEndpoint.java deleted file mode 100644 index d98417f686..0000000000 --- a/src/main/java/client/gui/Gui_ItemProxyEndpoint.java +++ /dev/null @@ -1,55 +0,0 @@ -package client.gui; - -import net.minecraft.client.Minecraft; -import net.minecraft.client.gui.inventory.GuiContainer; -import net.minecraft.client.resources.I18n; -import net.minecraft.entity.player.EntityPlayer; -import net.minecraft.entity.player.InventoryPlayer; -import net.minecraft.inventory.IInventory; -import net.minecraft.tileentity.TileEntity; -import net.minecraft.util.ResourceLocation; - -import org.lwjgl.opengl.GL11; - -import common.container.Container_ItemProxyEndpoint; - -import kekztech.KekzCore; - -public class Gui_ItemProxyEndpoint extends GuiContainer { - - private final ResourceLocation texture = new ResourceLocation( - KekzCore.MODID, - "textures/gui/ItemTechReceiverNode.png"); - - private final InventoryPlayer inventory; - private final IInventory te; - - public Gui_ItemProxyEndpoint(TileEntity te, EntityPlayer player) { - super(new Container_ItemProxyEndpoint(te, player)); - inventory = player.inventory; - this.te = (IInventory) te; - } - - @Override - protected void drawGuiContainerBackgroundLayer(float p_146976_1_, int p_146976_2_, int p_146976_3_) { - - Minecraft.getMinecraft().renderEngine.bindTexture(texture); - GL11.glColor4f(1.0f, 1.0f, 1.0f, 1.0f); - - final int x = (super.width - super.xSize) / 2; - final int y = (super.height - super.ySize) / 2; - - super.drawTexturedModalRect(x, y, 0, 0, super.xSize, super.ySize); - } - - @Override - protected void drawGuiContainerForegroundLayer(int p1, int p2) { - super.fontRendererObj.drawString( - I18n.format(te.getInventoryName()), - (super.xSize / 2) - (fontRendererObj.getStringWidth(I18n.format(te.getInventoryName())) / 2), - 6, - 4210752, - false); - super.fontRendererObj.drawString(I18n.format(inventory.getInventoryName()), 8, super.ySize - 96 + 2, 4210752); - } -} diff --git a/src/main/java/client/gui/Gui_ItemProxySource.java b/src/main/java/client/gui/Gui_ItemProxySource.java deleted file mode 100644 index 8618ff828f..0000000000 --- a/src/main/java/client/gui/Gui_ItemProxySource.java +++ /dev/null @@ -1,53 +0,0 @@ -package client.gui; - -import net.minecraft.client.Minecraft; -import net.minecraft.client.gui.inventory.GuiContainer; -import net.minecraft.client.resources.I18n; -import net.minecraft.entity.player.EntityPlayer; -import net.minecraft.entity.player.InventoryPlayer; -import net.minecraft.inventory.IInventory; -import net.minecraft.tileentity.TileEntity; -import net.minecraft.util.ResourceLocation; - -import org.lwjgl.opengl.GL11; - -import common.container.Container_ItemProxySource; - -import kekztech.KekzCore; - -public class Gui_ItemProxySource extends GuiContainer { - - private final ResourceLocation texture = new ResourceLocation(KekzCore.MODID, "textures/gui/ItemTech4by4.png"); - - private final InventoryPlayer inventory; - private final IInventory te; - - public Gui_ItemProxySource(TileEntity te, EntityPlayer player) { - super(new Container_ItemProxySource(te, player)); - inventory = player.inventory; - this.te = (IInventory) te; - } - - @Override - protected void drawGuiContainerBackgroundLayer(float p_146976_1_, int p_146976_2_, int p_146976_3_) { - - Minecraft.getMinecraft().renderEngine.bindTexture(texture); - GL11.glColor4f(1.0f, 1.0f, 1.0f, 1.0f); - - final int x = (super.width - super.xSize) / 2; - final int y = (super.height - super.ySize) / 2; - - super.drawTexturedModalRect(x, y, 0, 0, super.xSize, super.ySize); - } - - @Override - protected void drawGuiContainerForegroundLayer(int p1, int p2) { - super.fontRendererObj.drawString( - I18n.format(te.getInventoryName()), - (super.xSize / 2) - (fontRendererObj.getStringWidth(I18n.format(te.getInventoryName())) / 2), - 6, - 4210752, - false); - super.fontRendererObj.drawString(I18n.format(inventory.getInventoryName()), 8, super.ySize - 96 + 2, 4210752); - } -} |