aboutsummaryrefslogtreecommitdiff
path: root/src/main/java
diff options
context:
space:
mode:
authorTec <daniel112092@gmail.com>2021-04-01 12:39:41 +0200
committerTec <daniel112092@gmail.com>2021-04-01 12:39:41 +0200
commitd35bc08e43142f661163f04b28d3d19e3bffc0c5 (patch)
tree100a5a1f6cc815a1229f05fc4124626c61b3c566 /src/main/java
parent023479dafb85262398df2db407e015371c0c0a86 (diff)
downloadGT5-Unofficial-d35bc08e43142f661163f04b28d3d19e3bffc0c5.tar.gz
GT5-Unofficial-d35bc08e43142f661163f04b28d3d19e3bffc0c5.tar.bz2
GT5-Unofficial-d35bc08e43142f661163f04b28d3d19e3bffc0c5.zip
Allow gui enxtensibility
Diffstat (limited to 'src/main/java')
-rw-r--r--src/main/java/com/github/technus/tectech/thing/metaTileEntity/multi/base/GT_GUIContainer_MultiMachineEM.java28
1 files changed, 18 insertions, 10 deletions
diff --git a/src/main/java/com/github/technus/tectech/thing/metaTileEntity/multi/base/GT_GUIContainer_MultiMachineEM.java b/src/main/java/com/github/technus/tectech/thing/metaTileEntity/multi/base/GT_GUIContainer_MultiMachineEM.java
index 7794d54621..070976006c 100644
--- a/src/main/java/com/github/technus/tectech/thing/metaTileEntity/multi/base/GT_GUIContainer_MultiMachineEM.java
+++ b/src/main/java/com/github/technus/tectech/thing/metaTileEntity/multi/base/GT_GUIContainer_MultiMachineEM.java
@@ -18,13 +18,13 @@ import static gregtech.api.enums.GT_Values.RES_PATH_GUI;
*/
public class GT_GUIContainer_MultiMachineEM extends GT_GUIContainerMetaTile_Machine {
- private final String mName;
- private static byte counter = 0;
- private final boolean eSafeVoidButton, allowedToWorkButton,ePowerPassButton;
- private final GT_Container_MultiMachineEM mContainer;
+ protected final String mName;
+ protected static byte counter = 0;
+ protected final boolean eSafeVoidButton, allowedToWorkButton,ePowerPassButton;
+ protected final GT_Container_MultiMachineEM mContainer;
- public GT_GUIContainer_MultiMachineEM(InventoryPlayer aInventoryPlayer, IGregTechTileEntity aTileEntity, String aName, String aTextureFile,boolean enablePowerPass, boolean enableSafeVoid, boolean enablePowerButton) {
- super(new GT_Container_MultiMachineEM(aInventoryPlayer, aTileEntity), RES_PATH_GUI + "multimachines/" + (aTextureFile == null ? "MultiblockDisplay" : aTextureFile));
+ protected GT_GUIContainer_MultiMachineEM(GT_Container_MultiMachineEM container, String aName, String aTextureFile,boolean enablePowerPass, boolean enableSafeVoid, boolean enablePowerButton) {
+ super(container, RES_PATH_GUI + "multimachines/" + (aTextureFile == null ? "MultiblockDisplay" : aTextureFile));
mContainer=(GT_Container_MultiMachineEM)super.mContainer;
mName = aName;
ePowerPassButton=enablePowerPass;
@@ -34,8 +34,16 @@ public class GT_GUIContainer_MultiMachineEM extends GT_GUIContainerMetaTile_Mach
xSize = 198;
}
+ public GT_GUIContainer_MultiMachineEM(InventoryPlayer aInventoryPlayer, IGregTechTileEntity aTileEntity, String aName, String aTextureFile,boolean enablePowerPass, boolean enableSafeVoid, boolean enablePowerButton) {
+ this(new GT_Container_MultiMachineEM(aInventoryPlayer, aTileEntity),aName,aTextureFile,enablePowerPass,enableSafeVoid,enablePowerButton);
+ }
+
+ protected GT_GUIContainer_MultiMachineEM(GT_Container_MultiMachineEM container, String aName, String aTextureFile) {
+ this(container,aName,aTextureFile,true,true,true);
+ }
+
public GT_GUIContainer_MultiMachineEM(InventoryPlayer aInventoryPlayer, IGregTechTileEntity aTileEntity, String aName, String aTextureFile) {
- this(aInventoryPlayer,aTileEntity,aName,aTextureFile,true,true,true);
+ this(new GT_Container_MultiMachineEM(aInventoryPlayer, aTileEntity),aName,aTextureFile);
}
@Override
@@ -198,7 +206,7 @@ public class GT_GUIContainer_MultiMachineEM extends GT_GUIContainerMetaTile_Mach
}
}
- private void LEDdrawP(int x, int y, int i, int j, LedStatus status) {
+ protected void LEDdrawP(int x, int y, int i, int j, LedStatus status) {
int v = 192, su = 8, sv = 6, u = 11;
switch (status) {
case STATUS_WTF: {
@@ -287,7 +295,7 @@ public class GT_GUIContainer_MultiMachineEM extends GT_GUIContainerMetaTile_Mach
}
}
- private void LEDtooltips(int x,int y){
+ protected void LEDtooltips(int x,int y){
int renderPosX=x;
int renderPosY=y;
x-= (width - xSize) / 2;
@@ -327,7 +335,7 @@ public class GT_GUIContainer_MultiMachineEM extends GT_GUIContainerMetaTile_Mach
}
}
- private void hoveringText(List strings, int x, int y, FontRenderer font) {
+ protected void hoveringText(List strings, int x, int y, FontRenderer font) {
if (!strings.isEmpty()) {
GL11.glDisable(GL12.GL_RESCALE_NORMAL);
//RenderHelper.disableStandardItemLighting();