aboutsummaryrefslogtreecommitdiff
path: root/src/main/kotlin/moe/nea/ledger/events
diff options
context:
space:
mode:
authorLinnea Gräf <nea@nea.moe>2024-12-07 22:30:51 +0100
committerLinnea Gräf <nea@nea.moe>2024-12-07 22:30:51 +0100
commit0ca988c907c7e8e26029f59cc098e6be5e008ee5 (patch)
tree59af4d0e872e9fb53820c3ad2fd7147ae894a5ad /src/main/kotlin/moe/nea/ledger/events
parent6955c99b2e241cf7e4070424e8dbf29f80bb63fd (diff)
downloadLocalTransactionLedger-0ca988c907c7e8e26029f59cc098e6be5e008ee5.tar.gz
LocalTransactionLedger-0ca988c907c7e8e26029f59cc098e6be5e008ee5.tar.bz2
LocalTransactionLedger-0ca988c907c7e8e26029f59cc098e6be5e008ee5.zip
feat: Add dungeon chest loot detection
Diffstat (limited to 'src/main/kotlin/moe/nea/ledger/events')
-rw-r--r--src/main/kotlin/moe/nea/ledger/events/ExtraSupplyIdEvent.kt12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/main/kotlin/moe/nea/ledger/events/ExtraSupplyIdEvent.kt b/src/main/kotlin/moe/nea/ledger/events/ExtraSupplyIdEvent.kt
new file mode 100644
index 0000000..d040961
--- /dev/null
+++ b/src/main/kotlin/moe/nea/ledger/events/ExtraSupplyIdEvent.kt
@@ -0,0 +1,12 @@
+package moe.nea.ledger.events
+
+import moe.nea.ledger.ItemId
+import net.minecraftforge.fml.common.eventhandler.Event
+
+class ExtraSupplyIdEvent(
+ private val store: (String, ItemId) -> Unit
+) : Event() {
+ fun store(name: String, id: ItemId) {
+ store.invoke(name, id)
+ }
+}