From dd1f4f7a3e730a5ab58a5ed8d90b8470d40d3759 Mon Sep 17 00:00:00 2001 From: Antifluxfield Date: Fri, 30 Jun 2017 04:47:21 +0800 Subject: Create GT_GUIContainer_DataAccess.java --- .../java/gregtech/api/gui/GT_GUIContainer_DataAccess.java | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 src/main/java/gregtech/api/gui/GT_GUIContainer_DataAccess.java (limited to 'src/main/java/gregtech/api/gui') diff --git a/src/main/java/gregtech/api/gui/GT_GUIContainer_DataAccess.java b/src/main/java/gregtech/api/gui/GT_GUIContainer_DataAccess.java new file mode 100644 index 0000000000..10c7fc2648 --- /dev/null +++ b/src/main/java/gregtech/api/gui/GT_GUIContainer_DataAccess.java @@ -0,0 +1,15 @@ +package gregtech.api.gui; + +import gregtech.api.interfaces.tileentity.IGregTechTileEntity; +import net.minecraft.entity.player.InventoryPlayer; +import net.minecraft.util.ResourceLocation; + +import static gregtech.api.enums.GT_Values.RES_PATH_GUI; + +public class GT_GUIContainer_DataAccess extends GT_GUIContainer_4by4 { + + public GT_GUIContainer_DataAccess(InventoryPlayer aInventoryPlayer, IGregTechTileEntity aTileEntity, String aName) { + super(aInventoryPlayer, aTileEntity, aName); + mGUIbackground = new ResourceLocation(mGUIbackgroundPath = RES_PATH_GUI + "DataAccess.png"); + } +} -- cgit From a2bd69d2dabd096b17c863d8695f4d1bb38816ae Mon Sep 17 00:00:00 2001 From: Antifluxfield Date: Fri, 30 Jun 2017 06:08:28 +0800 Subject: Delete GT_GUIContainer_DataAccess.java --- .../java/gregtech/api/gui/GT_GUIContainer_DataAccess.java | 15 --------------- 1 file changed, 15 deletions(-) delete mode 100644 src/main/java/gregtech/api/gui/GT_GUIContainer_DataAccess.java (limited to 'src/main/java/gregtech/api/gui') diff --git a/src/main/java/gregtech/api/gui/GT_GUIContainer_DataAccess.java b/src/main/java/gregtech/api/gui/GT_GUIContainer_DataAccess.java deleted file mode 100644 index 10c7fc2648..0000000000 --- a/src/main/java/gregtech/api/gui/GT_GUIContainer_DataAccess.java +++ /dev/null @@ -1,15 +0,0 @@ -package gregtech.api.gui; - -import gregtech.api.interfaces.tileentity.IGregTechTileEntity; -import net.minecraft.entity.player.InventoryPlayer; -import net.minecraft.util.ResourceLocation; - -import static gregtech.api.enums.GT_Values.RES_PATH_GUI; - -public class GT_GUIContainer_DataAccess extends GT_GUIContainer_4by4 { - - public GT_GUIContainer_DataAccess(InventoryPlayer aInventoryPlayer, IGregTechTileEntity aTileEntity, String aName) { - super(aInventoryPlayer, aTileEntity, aName); - mGUIbackground = new ResourceLocation(mGUIbackgroundPath = RES_PATH_GUI + "DataAccess.png"); - } -} -- cgit From 94bf4937d8600ee15d509fa43432c22d87a0149f Mon Sep 17 00:00:00 2001 From: Antifluxfield Date: Fri, 30 Jun 2017 06:09:28 +0800 Subject: Update GT_GUIContainer_4by4.java --- src/main/java/gregtech/api/gui/GT_GUIContainer_4by4.java | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/main/java/gregtech/api/gui') diff --git a/src/main/java/gregtech/api/gui/GT_GUIContainer_4by4.java b/src/main/java/gregtech/api/gui/GT_GUIContainer_4by4.java index dd536f41a7..710411cb08 100644 --- a/src/main/java/gregtech/api/gui/GT_GUIContainer_4by4.java +++ b/src/main/java/gregtech/api/gui/GT_GUIContainer_4by4.java @@ -13,6 +13,11 @@ public class GT_GUIContainer_4by4 extends GT_GUIContainerMetaTile_Machine { super(new GT_Container_4by4(aInventoryPlayer, aTileEntity), RES_PATH_GUI + "4by4.png"); mName = aName; } + + public GT_GUIContainer_4by4(InventoryPlayer aInventoryPlayer, IGregTechTileEntity aTileEntity, String aName, String aBackground) { + super(new GT_Container_4by4(aInventoryPlayer, aTileEntity), RES_PATH_GUI + aBackground + "4by4.png"); + mName = aName; + } @Override protected void drawGuiContainerForegroundLayer(int par1, int par2) { -- cgit From 08d45ae407d8dbadae53cf1669efdab2b80509a4 Mon Sep 17 00:00:00 2001 From: Antifluxfield Date: Fri, 30 Jun 2017 06:10:31 +0800 Subject: Update GT_GUIContainer_3by3.java --- src/main/java/gregtech/api/gui/GT_GUIContainer_3by3.java | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/main/java/gregtech/api/gui') diff --git a/src/main/java/gregtech/api/gui/GT_GUIContainer_3by3.java b/src/main/java/gregtech/api/gui/GT_GUIContainer_3by3.java index de12be9e92..1f64dae245 100644 --- a/src/main/java/gregtech/api/gui/GT_GUIContainer_3by3.java +++ b/src/main/java/gregtech/api/gui/GT_GUIContainer_3by3.java @@ -14,6 +14,11 @@ public class GT_GUIContainer_3by3 extends GT_GUIContainerMetaTile_Machine { mName = aName; } + public GT_GUIContainer_3by3(InventoryPlayer aInventoryPlayer, IGregTechTileEntity aTileEntity, String aName, String aBackground) { + super(new GT_Container_3by3(aInventoryPlayer, aTileEntity), RES_PATH_GUI + aBackground + "3by3.png"); + mName = aName; + } + @Override protected void drawGuiContainerForegroundLayer(int par1, int par2) { fontRendererObj.drawString(mName, 8, 4, 4210752); -- cgit From 44ad1bcb96f3af27857ffdd2d7fdee3a1270081a Mon Sep 17 00:00:00 2001 From: Antifluxfield Date: Fri, 30 Jun 2017 06:11:18 +0800 Subject: Update GT_GUIContainer_2by2.java --- src/main/java/gregtech/api/gui/GT_GUIContainer_2by2.java | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/main/java/gregtech/api/gui') diff --git a/src/main/java/gregtech/api/gui/GT_GUIContainer_2by2.java b/src/main/java/gregtech/api/gui/GT_GUIContainer_2by2.java index 50653132ce..57c13f6b55 100644 --- a/src/main/java/gregtech/api/gui/GT_GUIContainer_2by2.java +++ b/src/main/java/gregtech/api/gui/GT_GUIContainer_2by2.java @@ -13,6 +13,11 @@ public class GT_GUIContainer_2by2 extends GT_GUIContainerMetaTile_Machine { super(new GT_Container_2by2(aInventoryPlayer, aTileEntity), RES_PATH_GUI + "2by2.png"); mName = aName; } + + public GT_GUIContainer_2by2(InventoryPlayer aInventoryPlayer, IGregTechTileEntity aTileEntity, String aName, String aBackground) { + super(new GT_Container_2by2(aInventoryPlayer, aTileEntity), RES_PATH_GUI + aBackground + "2by2.png"); + mName = aName; + } @Override protected void drawGuiContainerForegroundLayer(int par1, int par2) { -- cgit From cf9d88874550c61ee347c67e674535162beefead Mon Sep 17 00:00:00 2001 From: Antifluxfield Date: Fri, 30 Jun 2017 06:11:42 +0800 Subject: Update GT_GUIContainer_1by1.java --- src/main/java/gregtech/api/gui/GT_GUIContainer_1by1.java | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/main/java/gregtech/api/gui') diff --git a/src/main/java/gregtech/api/gui/GT_GUIContainer_1by1.java b/src/main/java/gregtech/api/gui/GT_GUIContainer_1by1.java index 29cc403c71..b33efa52a0 100644 --- a/src/main/java/gregtech/api/gui/GT_GUIContainer_1by1.java +++ b/src/main/java/gregtech/api/gui/GT_GUIContainer_1by1.java @@ -13,6 +13,11 @@ public class GT_GUIContainer_1by1 extends GT_GUIContainerMetaTile_Machine { super(new GT_Container_1by1(aInventoryPlayer, aTileEntity), RES_PATH_GUI + "1by1.png"); mName = aName; } + + public GT_GUIContainer_1by1(InventoryPlayer aInventoryPlayer, IGregTechTileEntity aTileEntity, String aName, String aBackground) { + super(new GT_Container_1by1(aInventoryPlayer, aTileEntity), RES_PATH_GUI + aBackground + "1by1.png"); + mName = aName; + } @Override protected void drawGuiContainerForegroundLayer(int par1, int par2) { -- cgit