From e616a0910bdf7f4540f2814a35c1b7eefa9cd59d Mon Sep 17 00:00:00 2001 From: ThatGravyBoat Date: Sun, 11 Jul 2021 21:28:26 +0000 Subject: Prettified Code! --- .../com/thatgravyboat/skyblockhud/config/SBHConfig.java | 15 +++++++-------- .../thatgravyboat/skyblockhud/config/SBHConfigEditor.java | 15 +++++++-------- 2 files changed, 14 insertions(+), 16 deletions(-) (limited to 'src/main/java/com/thatgravyboat/skyblockhud/config') diff --git a/src/main/java/com/thatgravyboat/skyblockhud/config/SBHConfig.java b/src/main/java/com/thatgravyboat/skyblockhud/config/SBHConfig.java index 9c00a92..db3e6df 100644 --- a/src/main/java/com/thatgravyboat/skyblockhud/config/SBHConfig.java +++ b/src/main/java/com/thatgravyboat/skyblockhud/config/SBHConfig.java @@ -50,9 +50,9 @@ public class SBHConfig extends Config { case "map": editOverlay(activeConfigCategory, 72, 72, map.miniMapPosition); return; -// case "tracker": -// editOverlay(activeConfigCategory, 120, 70, trackers.trackerPosition); -// return; + // case "tracker": + // editOverlay(activeConfigCategory, 120, 70, trackers.trackerPosition); + // return; } } @@ -84,10 +84,10 @@ public class SBHConfig extends Config { @Category(name = "Mining Hud", desc = "All Options for the Mining Hud.") public MiningHud miningHud = new MiningHud(); -//TODO ENABLED WHEN TRACKER GETS ADDED BACK -// @Expose -// @Category(name = "Tracker", desc = "All Options for the Trackers.") -// public Trackers trackers = new Trackers(); + //TODO ENABLED WHEN TRACKER GETS ADDED BACK + // @Expose + // @Category(name = "Tracker", desc = "All Options for the Trackers.") + // public Trackers trackers = new Trackers(); public static class Misc { @@ -320,7 +320,6 @@ public class SBHConfig extends Config { @ConfigOption(name = "Show Heat Bar", desc = "Allows you to show or hide the Heat Bar.") @ConfigEditorBoolean public boolean showHeatBar = true; - } public static class Trackers { diff --git a/src/main/java/com/thatgravyboat/skyblockhud/config/SBHConfigEditor.java b/src/main/java/com/thatgravyboat/skyblockhud/config/SBHConfigEditor.java index 58a9f24..8bbeaa7 100644 --- a/src/main/java/com/thatgravyboat/skyblockhud/config/SBHConfigEditor.java +++ b/src/main/java/com/thatgravyboat/skyblockhud/config/SBHConfigEditor.java @@ -1,5 +1,8 @@ package com.thatgravyboat.skyblockhud.config; +import static com.thatgravyboat.skyblockhud.GuiTextures.DISCORD; +import static com.thatgravyboat.skyblockhud.GuiTextures.TWITTER; + import com.google.common.collect.Lists; import com.thatgravyboat.skyblockhud.core.GlScissorStack; import com.thatgravyboat.skyblockhud.core.GuiElement; @@ -11,6 +14,10 @@ import com.thatgravyboat.skyblockhud.core.util.lerp.LerpUtils; import com.thatgravyboat.skyblockhud.core.util.lerp.LerpingInteger; import com.thatgravyboat.skyblockhud.core.util.render.RenderUtils; import com.thatgravyboat.skyblockhud.core.util.render.TextRenderUtils; +import java.awt.*; +import java.net.URI; +import java.util.*; +import java.util.List; import net.minecraft.client.Minecraft; import net.minecraft.client.gui.FontRenderer; import net.minecraft.client.gui.Gui; @@ -21,14 +28,6 @@ import net.minecraft.util.ResourceLocation; import org.lwjgl.input.Mouse; import org.lwjgl.opengl.GL11; -import java.awt.*; -import java.net.URI; -import java.util.List; -import java.util.*; - -import static com.thatgravyboat.skyblockhud.GuiTextures.DISCORD; -import static com.thatgravyboat.skyblockhud.GuiTextures.TWITTER; - public class SBHConfigEditor extends GuiElement { private static final ResourceLocation[] socialsIco = new ResourceLocation[] { DISCORD, TWITTER }; -- cgit