From 5b4decc2631c0acb8bbf5876d11ca8dfcb176acf Mon Sep 17 00:00:00 2001 From: jani270 <69345714+jani270@users.noreply.github.com> Date: Thu, 31 Jul 2025 05:58:03 +0200 Subject: feat: Option for Evolving Items and New Year Cake Slot Text (#1546) * feat: Option for Evolving Items and New Year Cake Slot Text * fix: clarify cake year and evolving items text --- .../skyblock/item/slottext/adders/EvolvingItemAdder.java | 6 +++++- .../skyblock/item/slottext/adders/NewYearCakeAdder.java | 9 +++++++++ src/main/resources/assets/skyblocker/lang/en_us.json | 4 ++++ 3 files changed, 18 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/main/java/de/hysky/skyblocker/skyblock/item/slottext/adders/EvolvingItemAdder.java b/src/main/java/de/hysky/skyblocker/skyblock/item/slottext/adders/EvolvingItemAdder.java index 8ef6b0fb..a86321b6 100644 --- a/src/main/java/de/hysky/skyblocker/skyblock/item/slottext/adders/EvolvingItemAdder.java +++ b/src/main/java/de/hysky/skyblocker/skyblock/item/slottext/adders/EvolvingItemAdder.java @@ -19,9 +19,13 @@ import java.util.regex.Pattern; // Evolving items are those that get upgraded after holding them in your inventory for a certain amount of time. public class EvolvingItemAdder extends SimpleSlotTextAdder { private static final Pattern BONUS_PATTERN = Pattern.compile("\\+?([\\d.]+)"); + private static final ConfigInformation CONFIG_INFORMATION = new ConfigInformation( + "evolving_items", + "skyblocker.config.uiAndVisuals.slotText.evolvingItems", + "skyblocker.config.uiAndVisuals.slotText.evolvingItems.@Tooltip"); public EvolvingItemAdder() { - super(); + super(CONFIG_INFORMATION); } @Override diff --git a/src/main/java/de/hysky/skyblocker/skyblock/item/slottext/adders/NewYearCakeAdder.java b/src/main/java/de/hysky/skyblocker/skyblock/item/slottext/adders/NewYearCakeAdder.java index 7699c822..b6fd4e12 100644 --- a/src/main/java/de/hysky/skyblocker/skyblock/item/slottext/adders/NewYearCakeAdder.java +++ b/src/main/java/de/hysky/skyblocker/skyblock/item/slottext/adders/NewYearCakeAdder.java @@ -13,6 +13,15 @@ import org.jetbrains.annotations.Nullable; import java.util.List; public class NewYearCakeAdder extends SimpleSlotTextAdder { + private static final ConfigInformation CONFIG_INFORMATION = new ConfigInformation( + "new_year_cake_year", + "skyblocker.config.uiAndVisuals.slotText.newYearCakeYear", + "skyblocker.config.uiAndVisuals.slotText.newYearCakeYear.@Tooltip"); + + public NewYearCakeAdder() { + super(CONFIG_INFORMATION); + } + @Override public @NotNull List getText(@Nullable Slot slot, @NotNull ItemStack stack, int slotId) { if (!stack.isOf(Items.CAKE)) return List.of(); diff --git a/src/main/resources/assets/skyblocker/lang/en_us.json b/src/main/resources/assets/skyblocker/lang/en_us.json index d276f809..b515b259 100644 --- a/src/main/resources/assets/skyblocker/lang/en_us.json +++ b/src/main/resources/assets/skyblocker/lang/en_us.json @@ -1048,9 +1048,13 @@ "skyblocker.config.uiAndVisuals.slotText.enchantmentLevel": "Enchantment Book Level", "skyblocker.config.uiAndVisuals.slotText.essenceShop": "Essence Shop", "skyblocker.config.uiAndVisuals.slotText.essenceShop.@Tooltip": "Displays the levels and your current amount of essence while in essence shops.", + "skyblocker.config.uiAndVisuals.slotText.evolvingItems": "Evolving Items", + "skyblocker.config.uiAndVisuals.slotText.evolvingItems.@Tooltip": "Displays the time held for Bottle of Jyrre, Moby Duck, Discrite, Dark Cacao Truffle, Training Weights.", "skyblocker.config.uiAndVisuals.slotText.hotmPerkLevel": "HOTM Perk Level", "skyblocker.config.uiAndVisuals.slotText.hotfPerkLevel": "HOTF Perk Level", "skyblocker.config.uiAndVisuals.slotText.minionLevel": "Minion Level", + "skyblocker.config.uiAndVisuals.slotText.newYearCakeYear": "New Year Cake Year", + "skyblocker.config.uiAndVisuals.slotText.newYearCakeYear.@Tooltip": "Displays the year on the cake.", "skyblocker.config.uiAndVisuals.slotText.petLevel": "Pet Level", "skyblocker.config.uiAndVisuals.slotText.potionLevel": "Potion Level", "skyblocker.config.uiAndVisuals.slotText.powerStonesGuide": "Power Stones Guide", -- cgit