refactored a few gui classes

This commit is contained in:
LAX1DUDE 2022-08-13 00:19:11 -07:00
parent 8b5b9c945f
commit 0de75b537d
4 changed files with 6 additions and 6 deletions

View file

@ -37,7 +37,7 @@ public class GuiScreenConnectOption extends GuiScreen {
}else if(par1GuiButton.id == 2) {
GuiScreen scn = new GuiScreenLANConnect(guiScreen);
if(IntegratedServer.relayManager.count() == 0) {
mc.displayGuiScreen(new GuiNoRelays(guiScreen));
mc.displayGuiScreen(new GuiScreenNoRelays(guiScreen));
}else {
mc.displayGuiScreen(scn);
}

View file

@ -28,7 +28,7 @@ public class GuiScreenCreateWorldSelection extends GuiScreen {
public void updateScreen() {
if(EaglerAdapter.getFileChooserResultAvailable() && (isImportingEPK || isImportingMCA)) {
this.mc.displayGuiScreen(new GuiNameWorldImport(mainmenu, EaglerAdapter.getFileChooserResultName(), isImportingEPK ? 0 : (isImportingMCA ? 1 : -1)));
this.mc.displayGuiScreen(new GuiScreenNameWorldImport(mainmenu, EaglerAdapter.getFileChooserResultName(), isImportingEPK ? 0 : (isImportingMCA ? 1 : -1)));
isImportingEPK = isImportingMCA = false;
}
}

View file

@ -6,7 +6,7 @@ import net.minecraft.src.GuiScreen;
import net.minecraft.src.GuiTextField;
import net.minecraft.src.StringTranslate;
public class GuiNameWorldImport extends GuiScreen {
public class GuiScreenNameWorldImport extends GuiScreen {
private GuiScreen parentGuiScreen;
private GuiTextField theGuiTextField;
private int importFormat;
@ -16,7 +16,7 @@ public class GuiNameWorldImport extends GuiScreen {
private boolean definetlyTimeToImport = false;
private boolean isImporting = false;
public GuiNameWorldImport(GuiScreen menu, String name, int format) {
public GuiScreenNameWorldImport(GuiScreen menu, String name, int format) {
this.parentGuiScreen = menu;
this.importFormat = format;
this.oldName = name;

View file

@ -4,11 +4,11 @@ import net.minecraft.src.GuiButton;
import net.minecraft.src.GuiScreen;
import net.minecraft.src.StringTranslate;
public class GuiNoRelays extends GuiScreen {
public class GuiScreenNoRelays extends GuiScreen {
private GuiScreen parent;
public GuiNoRelays(GuiScreen parent) {
public GuiScreenNoRelays(GuiScreen parent) {
this.parent = parent;
}