Skip to content

Commit

Permalink
Merge pull request #124 from AzureAaron/fix-config-loading
Browse files Browse the repository at this point in the history
Fix config loading
  • Loading branch information
KonaeAkira authored Apr 3, 2023
2 parents f89e824 + 51f4b23 commit 4fdf580
Showing 1 changed file with 77 additions and 77 deletions.
154 changes: 77 additions & 77 deletions src/main/java/me/xmrvizzy/skyblocker/config/SkyblockerConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -15,74 +15,74 @@ public class SkyblockerConfig implements ConfigData {

@ConfigEntry.Category("general")
@ConfigEntry.Gui.TransitiveObject
public final General general = new General();
public General general = new General();

@ConfigEntry.Category("locations")
@ConfigEntry.Gui.TransitiveObject
public final Locations locations = new Locations();
public Locations locations = new Locations();

@ConfigEntry.Category("messages")
@ConfigEntry.Gui.TransitiveObject
public final Messages messages = new Messages();
public Messages messages = new Messages();

@ConfigEntry.Category("richPresence")
@ConfigEntry.Gui.TransitiveObject
public final RichPresence richPresence = new RichPresence();
public RichPresence richPresence = new RichPresence();

@ConfigEntry.Category("quickNav")
@ConfigEntry.Gui.TransitiveObject
public final QuickNav quickNav = new QuickNav();
public QuickNav quickNav = new QuickNav();

public static class QuickNav {
public final boolean enableQuickNav = true;
public boolean enableQuickNav = true;

@ConfigEntry.Category("button1")
@ConfigEntry.Gui.CollapsibleObject()
public final QuickNavItem button1 = new QuickNavItem(true, new ItemData("diamond_sword"), "Your Skills", "/skills");
public QuickNavItem button1 = new QuickNavItem(true, new ItemData("diamond_sword"), "Your Skills", "/skills");

@ConfigEntry.Category("button2")
@ConfigEntry.Gui.CollapsibleObject()
public final QuickNavItem button2 = new QuickNavItem(true, new ItemData("painting"), "Collection", "/collection");
public QuickNavItem button2 = new QuickNavItem(true, new ItemData("painting"), "Collection", "/collection");

@ConfigEntry.Category("button3")
@ConfigEntry.Gui.CollapsibleObject()
public final QuickNavItem button3 = new QuickNavItem(false, new ItemData("air"), "", "");
public QuickNavItem button3 = new QuickNavItem(false, new ItemData("air"), "", "");

@ConfigEntry.Category("button4")
@ConfigEntry.Gui.CollapsibleObject()
public final QuickNavItem button4 = new QuickNavItem(true, new ItemData("bone"), "Pets", "/pets");
public QuickNavItem button4 = new QuickNavItem(true, new ItemData("bone"), "Pets", "/pets");

@ConfigEntry.Category("button5")
@ConfigEntry.Gui.CollapsibleObject()
public final QuickNavItem button5 = new QuickNavItem(true, new ItemData("leather_chestplate", 1, "tag:{display:{color:8991416}}"), "Wardrobe", "/wardrobe");
public QuickNavItem button5 = new QuickNavItem(true, new ItemData("leather_chestplate", 1, "tag:{display:{color:8991416}}"), "Wardrobe", "/wardrobe");

@ConfigEntry.Category("button6")
@ConfigEntry.Gui.CollapsibleObject()
public final QuickNavItem button6 = new QuickNavItem(true, new ItemData("ender_chest"), "Storage", "/storage");
public QuickNavItem button6 = new QuickNavItem(true, new ItemData("ender_chest"), "Storage", "/storage");

@ConfigEntry.Category("button7")
@ConfigEntry.Gui.CollapsibleObject()
public final QuickNavItem button7 = new QuickNavItem(true, new ItemData("player_head", 1, "tag:{SkullOwner:{Id:[I;-300151517,-631415889,-1193921967,-1821784279],Properties:{textures:[{Value:\"e3RleHR1cmVzOntTS0lOOnt1cmw6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvZDdjYzY2ODc0MjNkMDU3MGQ1NTZhYzUzZTA2NzZjYjU2M2JiZGQ5NzE3Y2Q4MjY5YmRlYmVkNmY2ZDRlN2JmOCJ9fX0=\"}]}}}"), "none", "/hub");
public QuickNavItem button7 = new QuickNavItem(true, new ItemData("player_head", 1, "tag:{SkullOwner:{Id:[I;-300151517,-631415889,-1193921967,-1821784279],Properties:{textures:[{Value:\"e3RleHR1cmVzOntTS0lOOnt1cmw6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvZDdjYzY2ODc0MjNkMDU3MGQ1NTZhYzUzZTA2NzZjYjU2M2JiZGQ5NzE3Y2Q4MjY5YmRlYmVkNmY2ZDRlN2JmOCJ9fX0=\"}]}}}"), "none", "/hub");

@ConfigEntry.Category("button8")
@ConfigEntry.Gui.CollapsibleObject()
public final QuickNavItem button8 = new QuickNavItem(true, new ItemData("player_head", 1, "tag:{SkullOwner:{Id:[I;1605800870,415127827,-1236127084,15358548],Properties:{textures:[{Value:\"e3RleHR1cmVzOntTS0lOOnt1cmw6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvNzg5MWQ1YjI3M2ZmMGJjNTBjOTYwYjJjZDg2ZWVmMWM0MGExYjk0MDMyYWU3MWU3NTQ3NWE1NjhhODI1NzQyMSJ9fX0=\"}]}}}"), "none", "/warp dungeon_hub");
public QuickNavItem button8 = new QuickNavItem(true, new ItemData("player_head", 1, "tag:{SkullOwner:{Id:[I;1605800870,415127827,-1236127084,15358548],Properties:{textures:[{Value:\"e3RleHR1cmVzOntTS0lOOnt1cmw6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvNzg5MWQ1YjI3M2ZmMGJjNTBjOTYwYjJjZDg2ZWVmMWM0MGExYjk0MDMyYWU3MWU3NTQ3NWE1NjhhODI1NzQyMSJ9fX0=\"}]}}}"), "none", "/warp dungeon_hub");

@ConfigEntry.Category("button9")
@ConfigEntry.Gui.CollapsibleObject()
public final QuickNavItem button9 = new QuickNavItem(false, new ItemData("air"), "", "");
public QuickNavItem button9 = new QuickNavItem(false, new ItemData("air"), "", "");

@ConfigEntry.Category("button10")
@ConfigEntry.Gui.CollapsibleObject()
public final QuickNavItem button10 = new QuickNavItem(true, new ItemData("enchanting_table"), "Enchant", "/etable");
public QuickNavItem button10 = new QuickNavItem(true, new ItemData("enchanting_table"), "Enchant", "/etable");

@ConfigEntry.Category("button11")
@ConfigEntry.Gui.CollapsibleObject()
public final QuickNavItem button11 = new QuickNavItem(true, new ItemData("anvil"), "Anvil", "/anvil");
public QuickNavItem button11 = new QuickNavItem(true, new ItemData("anvil"), "Anvil", "/anvil");

@ConfigEntry.Category("button12")
@ConfigEntry.Gui.CollapsibleObject()
public final QuickNavItem button12 = new QuickNavItem(true, new ItemData("crafting_table"), "Craft Item", "/craft");
public QuickNavItem button12 = new QuickNavItem(true, new ItemData("crafting_table"), "Craft Item", "/craft");
}

public static class QuickNavItem {
Expand All @@ -93,14 +93,14 @@ public QuickNavItem(Boolean render, ItemData itemData, String uiTitle, String cl
this.uiTitle = uiTitle;
}

public final Boolean render;
public Boolean render;

@ConfigEntry.Category("item")
@ConfigEntry.Gui.CollapsibleObject()
public final ItemData item;
public ItemData item;

public final String uiTitle;
public final String clickEvent;
public String uiTitle;
public String clickEvent;
}

public static class ItemData {
Expand All @@ -116,55 +116,55 @@ public ItemData(String itemName) {
this.nbt = "";
}

public final String itemName;
public final int count;
public final String nbt;
public String itemName;
public int count;
public String nbt;
}

public static class General {
public final boolean enableUpdateNotification = true;
public final boolean backpackPreviewWithoutShift = false;
public boolean enableUpdateNotification = true;
public boolean backpackPreviewWithoutShift = false;

@ConfigEntry.Gui.Excluded
public String apiKey;

@ConfigEntry.Category("bars")
@ConfigEntry.Gui.CollapsibleObject()
public final Bars bars = new Bars();
public Bars bars = new Bars();

@ConfigEntry.Category("itemList")
@ConfigEntry.Gui.CollapsibleObject()
public final ItemList itemList = new ItemList();
public ItemList itemList = new ItemList();

@ConfigEntry.Category("itemTooltip")
@ConfigEntry.Gui.CollapsibleObject()
public final ItemTooltip itemTooltip = new ItemTooltip();
public ItemTooltip itemTooltip = new ItemTooltip();

@ConfigEntry.Category("hitbox")
@ConfigEntry.Gui.CollapsibleObject()
public final Hitbox hitbox = new Hitbox();
public Hitbox hitbox = new Hitbox();

@ConfigEntry.Gui.Excluded
public final List<Integer> lockedSlots = new ArrayList<>();
public List<Integer> lockedSlots = new ArrayList<>();
}

public static class Bars {
public final boolean enableBars = true;
public boolean enableBars = true;

@ConfigEntry.Category("barpositions")
@ConfigEntry.Gui.CollapsibleObject()
public final BarPositions barpositions = new BarPositions();
public BarPositions barpositions = new BarPositions();
}

public static class BarPositions {
@ConfigEntry.Gui.EnumHandler(option = ConfigEntry.Gui.EnumHandler.EnumDisplayOption.BUTTON)
public final BarPosition healthBarPosition = BarPosition.LAYER1;
public BarPosition healthBarPosition = BarPosition.LAYER1;
@ConfigEntry.Gui.EnumHandler(option = ConfigEntry.Gui.EnumHandler.EnumDisplayOption.BUTTON)
public final BarPosition manaBarPosition = BarPosition.LAYER1;
public BarPosition manaBarPosition = BarPosition.LAYER1;
@ConfigEntry.Gui.EnumHandler(option = ConfigEntry.Gui.EnumHandler.EnumDisplayOption.BUTTON)
public final BarPosition defenceBarPosition = BarPosition.LAYER1;
public BarPosition defenceBarPosition = BarPosition.LAYER1;
@ConfigEntry.Gui.EnumHandler(option = ConfigEntry.Gui.EnumHandler.EnumDisplayOption.BUTTON)
public final BarPosition experienceBarPosition = BarPosition.LAYER1;
public BarPosition experienceBarPosition = BarPosition.LAYER1;

}

Expand Down Expand Up @@ -195,21 +195,21 @@ public int toInt() {
}

public static class Hitbox {
public final boolean oldFarmlandHitbox = true;
public final boolean oldLeverHitbox = false;
public boolean oldFarmlandHitbox = true;
public boolean oldLeverHitbox = false;
}

public static class RichPresence {
public final boolean enableRichPresence = false;
public boolean enableRichPresence = false;
@ConfigEntry.Gui.EnumHandler(option = ConfigEntry.Gui.EnumHandler.EnumDisplayOption.BUTTON)
@ConfigEntry.Gui.Tooltip()
public final Info info = Info.LOCATION;
public final boolean cycleMode = false;
public Info info = Info.LOCATION;
public boolean cycleMode = false;
public String customMessage;
}

public static class ItemList {
public final boolean enableItemList = true;
public boolean enableItemList = true;
}

public enum Average {
Expand All @@ -228,79 +228,79 @@ public String toString() {
}

public static class ItemTooltip {
public final boolean enableNPCPrice = true;
public final boolean enableAvgBIN = true;
public boolean enableNPCPrice = true;
public boolean enableAvgBIN = true;
@ConfigEntry.Gui.EnumHandler(option = ConfigEntry.Gui.EnumHandler.EnumDisplayOption.BUTTON)
@ConfigEntry.Gui.Tooltip()
public final Average avg = Average.THREE_DAY;
public final boolean enableLowestBIN = true;
public final boolean enableBazaarPrice = true;
public final boolean enableMuseumDate = true;
public Average avg = Average.THREE_DAY;
public boolean enableLowestBIN = true;
public boolean enableBazaarPrice = true;
public boolean enableMuseumDate = true;
}

public static class Locations {
@ConfigEntry.Category("dungeons")
@ConfigEntry.Gui.CollapsibleObject()
public final Dungeons dungeons = new Dungeons();
public Dungeons dungeons = new Dungeons();

@ConfigEntry.Category("dwarvenmines")
@ConfigEntry.Gui.CollapsibleObject()
public final DwarvenMines dwarvenMines = new DwarvenMines();
public DwarvenMines dwarvenMines = new DwarvenMines();
}

public static class Dungeons {
@ConfigEntry.Gui.Tooltip()
public final boolean croesusHelper = true;
public final boolean enableMap = true;
public final boolean solveThreeWeirdos = true;
public final boolean blazesolver = true;
public final boolean solveTrivia = true;
public boolean croesusHelper = true;
public boolean enableMap = true;
public boolean solveThreeWeirdos = true;
public boolean blazesolver = true;
public boolean solveTrivia = true;
@ConfigEntry.Gui.CollapsibleObject()
public final Terminals terminals = new Terminals();
public Terminals terminals = new Terminals();
}

public static class Terminals {
public final boolean solveColor = true;
public final boolean solveOrder = true;
public final boolean solveStartsWith = true;
public boolean solveColor = true;
public boolean solveOrder = true;
public boolean solveStartsWith = true;
}

public static class DwarvenMines {
public final boolean enableDrillFuel = true;
public final boolean solveFetchur = true;
public final boolean solvePuzzler = true;
public boolean enableDrillFuel = true;
public boolean solveFetchur = true;
public boolean solvePuzzler = true;
@ConfigEntry.Gui.CollapsibleObject()
public final DwarvenHud dwarvenHud = new DwarvenHud();
public DwarvenHud dwarvenHud = new DwarvenHud();
}

public static class DwarvenHud {
public final boolean enabled = true;
public final boolean enableBackground = true;
public boolean enabled = true;
public boolean enableBackground = true;
public int x = 10;
public int y = 10;
}

public static class Messages {
@ConfigEntry.Gui.EnumHandler(option = ConfigEntry.Gui.EnumHandler.EnumDisplayOption.BUTTON)
public final ChatFilterResult hideAbility = ChatFilterResult.PASS;
public ChatFilterResult hideAbility = ChatFilterResult.PASS;
@ConfigEntry.Gui.EnumHandler(option = ConfigEntry.Gui.EnumHandler.EnumDisplayOption.BUTTON)
public final ChatFilterResult hideHeal = ChatFilterResult.PASS;
public ChatFilterResult hideHeal = ChatFilterResult.PASS;
@ConfigEntry.Gui.EnumHandler(option = ConfigEntry.Gui.EnumHandler.EnumDisplayOption.BUTTON)
public final ChatFilterResult hideAOTE = ChatFilterResult.PASS;
public ChatFilterResult hideAOTE = ChatFilterResult.PASS;
@ConfigEntry.Gui.EnumHandler(option = ConfigEntry.Gui.EnumHandler.EnumDisplayOption.BUTTON)
public final ChatFilterResult hideImplosion = ChatFilterResult.PASS;
public ChatFilterResult hideImplosion = ChatFilterResult.PASS;
@ConfigEntry.Gui.EnumHandler(option = ConfigEntry.Gui.EnumHandler.EnumDisplayOption.BUTTON)
public final ChatFilterResult hideMoltenWave = ChatFilterResult.PASS;
public ChatFilterResult hideMoltenWave = ChatFilterResult.PASS;
@ConfigEntry.Gui.EnumHandler(option = ConfigEntry.Gui.EnumHandler.EnumDisplayOption.BUTTON)
public final ChatFilterResult hideAds = ChatFilterResult.PASS;
public ChatFilterResult hideAds = ChatFilterResult.PASS;
@ConfigEntry.Gui.EnumHandler(option = ConfigEntry.Gui.EnumHandler.EnumDisplayOption.BUTTON)
public final ChatFilterResult hideTeleportPad = ChatFilterResult.PASS;
public ChatFilterResult hideTeleportPad = ChatFilterResult.PASS;
@ConfigEntry.Gui.EnumHandler(option = ConfigEntry.Gui.EnumHandler.EnumDisplayOption.BUTTON)
public final ChatFilterResult hideCombo = ChatFilterResult.PASS;
public ChatFilterResult hideCombo = ChatFilterResult.PASS;
@ConfigEntry.Gui.EnumHandler(option = ConfigEntry.Gui.EnumHandler.EnumDisplayOption.BUTTON)
public final ChatFilterResult hideAutopet = ChatFilterResult.PASS;
public ChatFilterResult hideAutopet = ChatFilterResult.PASS;
@ConfigEntry.Gui.Tooltip()
public final boolean hideMana = false;
public boolean hideMana = false;
}

public enum Info {
Expand Down

0 comments on commit 4fdf580

Please sign in to comment.