aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/lorenz/mod/config
diff options
context:
space:
mode:
authorLorenz <ESs95s3P5z8Pheb>2022-07-11 23:30:46 +0200
committerLorenz <ESs95s3P5z8Pheb>2022-07-11 23:30:46 +0200
commitf44e7afee230384e03307f052fa5a90aadbaff44 (patch)
treea1df487f4393f3ef8c4356ea1047f19757706e53 /src/main/java/at/lorenz/mod/config
parentcd502b4b48c9b1858a8004989d7bb2c55ee994af (diff)
downloadSkyHanni-f44e7afee230384e03307f052fa5a90aadbaff44.tar.gz
SkyHanni-f44e7afee230384e03307f052fa5a90aadbaff44.tar.bz2
SkyHanni-f44e7afee230384e03307f052fa5a90aadbaff44.zip
add action bar event, add item ability cooldown feature
Diffstat (limited to 'src/main/java/at/lorenz/mod/config')
-rw-r--r--src/main/java/at/lorenz/mod/config/Features.java32
1 files changed, 23 insertions, 9 deletions
diff --git a/src/main/java/at/lorenz/mod/config/Features.java b/src/main/java/at/lorenz/mod/config/Features.java
index d4c1e6014..25c36d310 100644
--- a/src/main/java/at/lorenz/mod/config/Features.java
+++ b/src/main/java/at/lorenz/mod/config/Features.java
@@ -13,7 +13,9 @@ import net.minecraft.client.Minecraft;
public class Features {
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.feature, activeConfig))));
+ Minecraft.getMinecraft().displayGuiScreen(new GuiPositionEditor(position, width, height, () -> {
+ }, () -> {
+ }, () -> LorenzMod.screenToOpen = new GuiScreenElementWrapper(new SBHConfigEditor(LorenzMod.feature, activeConfig))));
}
public void executeRunnable(String runnableId) {
@@ -32,7 +34,7 @@ public class Features {
}
if (runnableId.equals("testPos")) {
- editOverlay(activeConfigCategory, 200, 16, test.testPos);
+ editOverlay(activeConfigCategory, 200, 16, debug.testPos);
return;
}
}
@@ -46,20 +48,24 @@ public class Features {
public Dungeon dungeon = new Dungeon();
@Expose
- @Category(name = "Item", desc = "Changing the behavior around items and the inventory.")
- public Inventory item = new Inventory();
+ @Category(name = "Items", desc = "Changing the behavior around items and the inventory.")
+ public Items items = new Items();
@Expose
@Category(name = "Bazaar", desc = "Bazaar settings.")
public Bazaar bazaar = new Bazaar();
@Expose
- @Category(name = "Misc", desc = "Settings without a big category")
+ @Category(name = "Misc", desc = "Settings without a category.")
public Misc misc = new Misc();
@Expose
- @Category(name = "Test", desc = "Test stuff")
- public Test test = new Test();
+ @Category(name = "Debug", desc = "Debug and test stuff.")
+ public Debug debug = new Debug();
+
+ @Expose
+ @Category(name = "Abilities", desc = "Stuff about abilities.")
+ public Abilities abilities = new Abilities();
public static class Chat {
@@ -123,7 +129,7 @@ public class Features {
public boolean bossDamageIndicator = false;
}
- public static class Inventory {
+ public static class Items {
@Expose
@ConfigOption(name = "Not Clickable Items", desc = "Hide items that are not clickable in " + "the current inventory: ah, bz, accessory bag, etc")
@@ -197,7 +203,7 @@ public class Features {
public boolean configButtonOnPause = true;
}
- public static class Test {
+ public static class Debug {
@Expose
@ConfigOption(name = "Enable Test", desc = "Enable Test logic")
@@ -209,4 +215,12 @@ public class Features {
@ConfigEditorButton(runnableId = "testPos", buttonText = "Edit")
public Position testPos = new Position(10, 10, false, true);
}
+
+ public static class Abilities {
+
+ @Expose
+ @ConfigOption(name = "Item Cooldown", desc = "Shows the cooldown of item abilities.")
+ @ConfigEditorBoolean
+ public boolean itemAbilityCooldown = false;
+ }
}