Skip to content

Commit

Permalink
initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
GrahamKracker committed Dec 11, 2024
1 parent 49ca178 commit cd698ba
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -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
2 changes: 2 additions & 0 deletions src/main/generated/assets/cookies-mod/lang/en_us.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit cd698ba

Please sign in to comment.