aboutsummaryrefslogtreecommitdiff
path: root/src/main/kotlin/moe/nea/ledger/events
diff options
context:
space:
mode:
authorLinnea Gräf <nea@nea.moe>2024-12-07 21:18:21 +0100
committerLinnea Gräf <nea@nea.moe>2024-12-07 21:18:21 +0100
commit6955c99b2e241cf7e4070424e8dbf29f80bb63fd (patch)
tree5abb4d0474cac2c579902e4bbf0266cdce0efaa0 /src/main/kotlin/moe/nea/ledger/events
parente3ace3c1b781b8d07f8eca60ba90df35da6c9d21 (diff)
downloadLocalTransactionLedger-6955c99b2e241cf7e4070424e8dbf29f80bb63fd.tar.gz
LocalTransactionLedger-6955c99b2e241cf7e4070424e8dbf29f80bb63fd.tar.bz2
LocalTransactionLedger-6955c99b2e241cf7e4070424e8dbf29f80bb63fd.zip
feat: Add kat upgrade and flower detection
Diffstat (limited to 'src/main/kotlin/moe/nea/ledger/events')
-rw-r--r--src/main/kotlin/moe/nea/ledger/events/BeforeGuiAction.kt7
1 files changed, 6 insertions, 1 deletions
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?
+}