diff --git a/src/main/generated/.cache/cabcb80d088276cffde41e74584028f1c00b99b8 b/src/main/generated/.cache/cabcb80d088276cffde41e74584028f1c00b99b8 index 646ed537..8c37d588 100644 --- a/src/main/generated/.cache/cabcb80d088276cffde41e74584028f1c00b99b8 +++ b/src/main/generated/.cache/cabcb80d088276cffde41e74584028f1c00b99b8 @@ -1,2 +1,2 @@ -// 1.21.3 2024-11-18T21:50:02.348035 cookies-mod/Language (en_us) -c4ccaf30006997855f4e249ad734e937b167f02f assets/cookies-mod/lang/en_us.json +// 1.21.3 2024-12-11T14:15:47.3017455 cookies-mod/Language (en_us) +b38b189b066d12ab0c2d533a84fa00f9718ed60c assets\cookies-mod\lang\en_us.json diff --git a/src/main/generated/assets/cookies-mod/lang/en_us.json b/src/main/generated/assets/cookies-mod/lang/en_us.json index c4799472..50c605bf 100644 --- a/src/main/generated/assets/cookies-mod/lang/en_us.json +++ b/src/main/generated/assets/cookies-mod/lang/en_us.json @@ -329,6 +329,8 @@ "cookies.config.misc.notifications.sound.tooltip": "Plays a sound when sending the notification", "cookies.config.misc.notifications.type.name": "Notification type", "cookies.config.misc.notifications.type.tooltip": "Changes how you get the notifications.\n\nChat -> Simple chat message\nToast -> Popup in the top right of your screen\nBoth -> Chat message + popup", + "cookies.config.misc.reforge_tooltip.name": "Show reforge tooltip", + "cookies.config.misc.reforge_tooltip.tooltip": "Shows the current reforge on the tooltip of an item in the reforge menu", "cookies.config.misc.scroll_tooltips.name": "Scrollable Tooltips", "cookies.config.misc.scroll_tooltips.tooltip": "Allows you to scroll through tooltips\n\nCTRL + Scroll -> move horizontal\nSHIFT + Scroll -> chop tooltips", "cookies.config.misc.show_dye_armor.name": "Show armor if dyed", diff --git a/src/main/java/codes/cookies/mod/features/misc/utils/ReforgeHelper.java b/src/main/java/codes/cookies/mod/features/misc/utils/ReforgeHelper.java index ccf63115..ad19299e 100644 --- a/src/main/java/codes/cookies/mod/features/misc/utils/ReforgeHelper.java +++ b/src/main/java/codes/cookies/mod/features/misc/utils/ReforgeHelper.java @@ -2,14 +2,28 @@ import codes.cookies.mod.config.ConfigManager; import codes.cookies.mod.events.InventoryEvents; +import codes.cookies.mod.utils.cookies.CookiesUtils; import codes.cookies.mod.utils.skyblock.LocationUtils; import net.minecraft.client.gui.screen.ingame.HandledScreen; import net.minecraft.client.option.KeyBinding; +import net.minecraft.item.ItemStack; +import net.minecraft.screen.ScreenHandler; +import net.minecraft.screen.ScreenHandlerListener; public class ReforgeHelper { public ReforgeHelper(HandledScreen handledScreen) { - + handledScreen.getScreenHandler().addListener(new ScreenHandlerListener() { + @Override + public void onSlotUpdate(ScreenHandler handler, int slotId, ItemStack stack) { + CookiesUtils.sendMessage("onSlotUpdate: " + slotId + " " + stack); + } + + @Override + public void onPropertyUpdate(ScreenHandler handler, int property, int value) { + CookiesUtils.sendMessage("onPropertyUpdate: " + property + " " + value); + } + }); } public static void init() {