From 6955c99b2e241cf7e4070424e8dbf29f80bb63fd Mon Sep 17 00:00:00 2001 From: Linnea Gräf Date: Sat, 7 Dec 2024 21:18:21 +0100 Subject: feat: Add kat upgrade and flower detection --- src/main/kotlin/moe/nea/ledger/events/BeforeGuiAction.kt | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/main/kotlin/moe/nea/ledger/events') diff --git a/src/main/kotlin/moe/nea/ledger/events/BeforeGuiAction.kt b/src/main/kotlin/moe/nea/ledger/events/BeforeGuiAction.kt index 69362bd..098912a 100644 --- a/src/main/kotlin/moe/nea/ledger/events/BeforeGuiAction.kt +++ b/src/main/kotlin/moe/nea/ledger/events/BeforeGuiAction.kt @@ -1,6 +1,11 @@ package moe.nea.ledger.events import net.minecraft.client.gui.GuiScreen +import net.minecraft.client.gui.inventory.GuiChest +import net.minecraft.inventory.ContainerChest import net.minecraftforge.fml.common.eventhandler.Event -data class BeforeGuiAction(val gui: GuiScreen) : Event() +data class BeforeGuiAction(val gui: GuiScreen) : Event() { + val chest = gui as? GuiChest + val chestSlots = chest?.inventorySlots as ContainerChest? +} -- cgit