aboutsummaryrefslogtreecommitdiff
path: root/src/main/kotlin/moe/nea/ledger/events
diff options
context:
space:
mode:
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)
+ }
+}