aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/lorenz/mod
diff options
context:
space:
mode:
authorhannibal00212 <hannibal00212@users.noreply.github.com>2022-07-08 10:43:29 +0000
committerGitHub Action <actions@github.com>2022-07-08 10:43:29 +0000
commit9626b9b5cdf6e347ea1ab2d8f1c38e7986126942 (patch)
tree31fc6cc986b39d13299c95bbaf1e89dff807fd50 /src/main/java/at/lorenz/mod
parent8cbd6310e6cda9fa89e09e38c8d1db7fd69ebcae (diff)
downloadskyhanni-9626b9b5cdf6e347ea1ab2d8f1c38e7986126942.tar.gz
skyhanni-9626b9b5cdf6e347ea1ab2d8f1c38e7986126942.tar.bz2
skyhanni-9626b9b5cdf6e347ea1ab2d8f1c38e7986126942.zip
Prettified Code!
Diffstat (limited to 'src/main/java/at/lorenz/mod')
-rw-r--r--src/main/java/at/lorenz/mod/Features.java100
1 files changed, 48 insertions, 52 deletions
diff --git a/src/main/java/at/lorenz/mod/Features.java b/src/main/java/at/lorenz/mod/Features.java
index 2aeed312c..f41359f87 100644
--- a/src/main/java/at/lorenz/mod/Features.java
+++ b/src/main/java/at/lorenz/mod/Features.java
@@ -15,62 +15,59 @@ import net.minecraft.client.Minecraft;
public class Features extends Config {
private void editOverlay(String activeConfig, int width, int height, Position position) {
- Minecraft.getMinecraft().displayGuiScreen(new GuiPositionEditor(position, width, height, () -> {
- }, () -> {
- }, () -> LorenzMod.screenToOpen = new GuiScreenElementWrapper(new SBHConfigEditor(LorenzMod.config, activeConfig))));
+ Minecraft.getMinecraft().displayGuiScreen(new GuiPositionEditor(position, width, height, () -> {}, () -> {}, () -> LorenzMod.screenToOpen = new GuiScreenElementWrapper(new SBHConfigEditor(LorenzMod.config, activeConfig))));
}
@Override
public void executeRunnable(String runnableId) {
-// String activeConfigCategory = null;
-// if (Minecraft.getMinecraft().currentScreen instanceof GuiScreenElementWrapper) {
-// GuiScreenElementWrapper wrapper = (GuiScreenElementWrapper) Minecraft.getMinecraft().currentScreen;
-// if (wrapper.element instanceof SBHConfigEditor) {
-// activeConfigCategory = ((SBHConfigEditor) wrapper.element).getSelectedCategoryName();
-// }
-// }
-//
-// switch (runnableId) {
-// case "rpg":
-// editOverlay(activeConfigCategory, 120, 47, rpg.rpgHudPosition);
-// return;
-// case "d1":
-// editOverlay(activeConfigCategory, 120, 32, dungeon.dungeonPlayer1);
-// return;
-// case "d2":
-// editOverlay(activeConfigCategory, 120, 32, dungeon.dungeonPlayer2);
-// return;
-// case "d3":
-// editOverlay(activeConfigCategory, 120, 32, dungeon.dungeonPlayer3);
-// return;
-// case "d4":
-// editOverlay(activeConfigCategory, 120, 32, dungeon.dungeonPlayer4);
-// return;
-// case "main":
-// editOverlay(activeConfigCategory, 1000, 34, main.mainHudPos);
-// return;
-// case "ultimate":
-// editOverlay(activeConfigCategory, 182, 5, dungeon.barPosition);
-// return;
-// case "map":
-// editOverlay(activeConfigCategory, 72, 72, map.miniMapPosition);
-// return;
-// case "tracker":
-// editOverlay(activeConfigCategory, 130, 70, trackers.trackerPosition);
-// return;
-// case "drill":
-// editOverlay(activeConfigCategory, 136, 7, mining.drillBar);
-// return;
-// case "heat":
-// editOverlay(activeConfigCategory, 45, 7, mining.heatBar);
-// return;
-// case "dialogue":
-// editOverlay(activeConfigCategory, 182, 68, misc.dialoguePos);
-// return;
-// }
+ // String activeConfigCategory = null;
+ // if (Minecraft.getMinecraft().currentScreen instanceof GuiScreenElementWrapper) {
+ // GuiScreenElementWrapper wrapper = (GuiScreenElementWrapper) Minecraft.getMinecraft().currentScreen;
+ // if (wrapper.element instanceof SBHConfigEditor) {
+ // activeConfigCategory = ((SBHConfigEditor) wrapper.element).getSelectedCategoryName();
+ // }
+ // }
+ //
+ // switch (runnableId) {
+ // case "rpg":
+ // editOverlay(activeConfigCategory, 120, 47, rpg.rpgHudPosition);
+ // return;
+ // case "d1":
+ // editOverlay(activeConfigCategory, 120, 32, dungeon.dungeonPlayer1);
+ // return;
+ // case "d2":
+ // editOverlay(activeConfigCategory, 120, 32, dungeon.dungeonPlayer2);
+ // return;
+ // case "d3":
+ // editOverlay(activeConfigCategory, 120, 32, dungeon.dungeonPlayer3);
+ // return;
+ // case "d4":
+ // editOverlay(activeConfigCategory, 120, 32, dungeon.dungeonPlayer4);
+ // return;
+ // case "main":
+ // editOverlay(activeConfigCategory, 1000, 34, main.mainHudPos);
+ // return;
+ // case "ultimate":
+ // editOverlay(activeConfigCategory, 182, 5, dungeon.barPosition);
+ // return;
+ // case "map":
+ // editOverlay(activeConfigCategory, 72, 72, map.miniMapPosition);
+ // return;
+ // case "tracker":
+ // editOverlay(activeConfigCategory, 130, 70, trackers.trackerPosition);
+ // return;
+ // case "drill":
+ // editOverlay(activeConfigCategory, 136, 7, mining.drillBar);
+ // return;
+ // case "heat":
+ // editOverlay(activeConfigCategory, 45, 7, mining.heatBar);
+ // return;
+ // case "dialogue":
+ // editOverlay(activeConfigCategory, 182, 68, misc.dialoguePos);
+ // return;
+ // }
}
-
@Expose
@Category(name = "Chat", desc = "Chat related features.")
public Chat chat = new Chat();
@@ -102,8 +99,7 @@ public class Features extends Config {
public static class Inventory {
@Expose
- @ConfigOption(name = "Hide Not Clickable Items", desc = "Hide items that are not clickable in " +
- "the current inventory: ah, bz, accessory bag, etc")
+ @ConfigOption(name = "Hide Not Clickable Items", desc = "Hide items that are not clickable in " + "the current inventory: ah, bz, accessory bag, etc")
@ConfigEditorBoolean
public boolean hideNotClickableItems = false;
}