-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
obfuscate old forge config guis - saves ~500 bytes
just need the providers also not tested
- Loading branch information
Showing
5 changed files
with
52 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 25 additions & 0 deletions
25
archaic/src/main/java/dev/nolij/zume/archaic/ArchaicZumeConfigGUI.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
package dev.nolij.zume.archaic; | ||
|
||
import cpw.mods.fml.client.config.GuiConfig; | ||
import dev.nolij.zume.api.platform.v1.ZumeAPI; | ||
import net.minecraft.client.Minecraft; | ||
import net.minecraft.client.gui.GuiScreen; | ||
|
||
import java.util.Collections; | ||
|
||
import static dev.nolij.zume.impl.ZumeConstants.MOD_ID; | ||
|
||
public class ArchaicZumeConfigGUI extends GuiConfig { | ||
|
||
public ArchaicZumeConfigGUI(GuiScreen parentScreen) { | ||
super(parentScreen, Collections.emptyList(), MOD_ID, false, false, "config"); | ||
|
||
ZumeAPI.openConfigFile(); | ||
} | ||
|
||
@Override | ||
public void initGui() { | ||
Minecraft.getMinecraft().displayGuiScreen(parentScreen); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 0 additions & 21 deletions
21
vintage/src/main/java/dev/nolij/zume/vintage/VintageConfigProvider.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 26 additions & 0 deletions
26
vintage/src/main/java/dev/nolij/zume/vintage/VintageZumeConfigGUI.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
package dev.nolij.zume.vintage; | ||
|
||
import dev.nolij.zume.api.platform.v1.ZumeAPI; | ||
import net.minecraftforge.fml.client.config.GuiConfig; | ||
import net.minecraft.client.Minecraft; | ||
import net.minecraft.client.gui.GuiScreen; | ||
|
||
import java.util.Collections; | ||
|
||
import static dev.nolij.zume.impl.ZumeConstants.MOD_ID; | ||
|
||
public class VintageZumeConfigGUI extends GuiConfig { | ||
|
||
public VintageZumeConfigGUI(GuiScreen parentScreen) { | ||
super(parentScreen, Collections.emptyList(), MOD_ID, false, false, "config"); | ||
|
||
ZumeAPI.openConfigFile(); | ||
} | ||
|
||
@Override | ||
public void initGui() { | ||
this.onGuiClosed(); | ||
Minecraft.getMinecraft().displayGuiScreen(parentScreen); | ||
} | ||
|
||
} |