From 1a32e5e1a6e338e87043d39d04b9a6b817544469 Mon Sep 17 00:00:00 2001 From: hannibal2 <24389977+hannibal002@users.noreply.github.com> Date: Thu, 20 Jun 2024 23:25:00 +0200 Subject: Feature: Craftable Item List (#1334) Co-authored-by: CalMWolfs <94038482+CalMWolfs@users.noreply.github.com> Co-authored-by: Thunderblade73 Co-authored-by: Thunderblade73 <85900443+Thunderblade73@users.noreply.github.com> Co-authored-by: hannibal2 <24389977+hannibal00212@users.noreply.github.com> --- .../inventory/CraftableItemListConfig.java | 39 ++++++++++++++++++++++ .../config/features/inventory/InventoryConfig.java | 7 +++- 2 files changed, 45 insertions(+), 1 deletion(-) create mode 100644 src/main/java/at/hannibal2/skyhanni/config/features/inventory/CraftableItemListConfig.java (limited to 'src/main/java/at/hannibal2/skyhanni/config') 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 -- cgit