aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni/config
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal002@users.noreply.github.com>2024-06-20 23:25:00 +0200
committerGitHub <noreply@github.com>2024-06-20 23:25:00 +0200
commit1a32e5e1a6e338e87043d39d04b9a6b817544469 (patch)
tree9920cf33407378435b1aac5b34074be617fdc3b5 /src/main/java/at/hannibal2/skyhanni/config
parent9b1894c738a16ec6ce2d59a29f7b85a9b9df9381 (diff)
downloadskyhanni-1a32e5e1a6e338e87043d39d04b9a6b817544469.tar.gz
skyhanni-1a32e5e1a6e338e87043d39d04b9a6b817544469.tar.bz2
skyhanni-1a32e5e1a6e338e87043d39d04b9a6b817544469.zip
Feature: Craftable Item List (#1334)
Co-authored-by: CalMWolfs <94038482+CalMWolfs@users.noreply.github.com> Co-authored-by: Thunderblade73 <gaidermarkus@gmail.com> Co-authored-by: Thunderblade73 <85900443+Thunderblade73@users.noreply.github.com> Co-authored-by: hannibal2 <24389977+hannibal00212@users.noreply.github.com>
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/config')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/config/features/inventory/CraftableItemListConfig.java39
-rw-r--r--src/main/java/at/hannibal2/skyhanni/config/features/inventory/InventoryConfig.java7
2 files changed, 45 insertions, 1 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/config/features/inventory/CraftableItemListConfig.java b/src/main/java/at/hannibal2/skyhanni/config/features/inventory/CraftableItemListConfig.java
new file mode 100644
index 000000000..398a3e59e
--- /dev/null
+++ b/src/main/java/at/hannibal2/skyhanni/config/features/inventory/CraftableItemListConfig.java
@@ -0,0 +1,39 @@
+package at.hannibal2.skyhanni.config.features.inventory;
+
+import at.hannibal2.skyhanni.config.FeatureToggle;
+import at.hannibal2.skyhanni.config.core.config.Position;
+import com.google.gson.annotations.Expose;
+import io.github.notenoughupdates.moulconfig.annotations.ConfigEditorBoolean;
+import io.github.notenoughupdates.moulconfig.annotations.ConfigLink;
+import io.github.notenoughupdates.moulconfig.annotations.ConfigOption;
+
+public class CraftableItemListConfig {
+
+ @Expose
+ @ConfigOption(
+ name = "Enabled",
+ desc = "Shows a list of items that can be crafted with the items in inventory when inside the crafting menu. " +
+ "Click on the item to open §e/recipe§7."
+ )
+ @ConfigEditorBoolean
+ @FeatureToggle
+ public boolean enabled = false;
+
+ @Expose
+ @ConfigOption(
+ name = "Include Sacks",
+ desc = "Include items from inside the sacks.")
+ @ConfigEditorBoolean
+ public boolean includeSacks = false;
+
+ @Expose
+ @ConfigOption(
+ name = "Exclude Vanilla Items",
+ desc = "Hide vanilla items from the craftable item list.")
+ @ConfigEditorBoolean
+ public boolean excludeVanillaItems = true;
+
+ @Expose
+ @ConfigLink(owner = CraftableItemListConfig.class, field = "enabled")
+ public Position position = new Position(144, 139, false, true);
+}
diff --git a/src/main/java/at/hannibal2/skyhanni/config/features/inventory/InventoryConfig.java b/src/main/java/at/hannibal2/skyhanni/config/features/inventory/InventoryConfig.java
index 978d97ead..fcdccfab7 100644
--- a/src/main/java/at/hannibal2/skyhanni/config/features/inventory/InventoryConfig.java
+++ b/src/main/java/at/hannibal2/skyhanni/config/features/inventory/InventoryConfig.java
@@ -57,7 +57,12 @@ public class InventoryConfig {
@Expose
@Category(name = "Chocolate Factory", desc = "Features to help you master the Chocolate Factory idle game.")
public ChocolateFactoryConfig chocolateFactory = new ChocolateFactoryConfig();
-
+
+ @Expose
+ @Category(name = "Craftable Item List", desc = "")
+ @Accordion
+ public CraftableItemListConfig craftableItemList = new CraftableItemListConfig();
+
@Expose
@ConfigOption(name = "Not Clickable Items", desc = "Better not click that item.")
@Accordion