aboutsummaryrefslogtreecommitdiff
path: root/src/main/kotlin/events/PlayerInventoryUpdate.kt
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/kotlin/events/PlayerInventoryUpdate.kt')
-rw-r--r--src/main/kotlin/events/PlayerInventoryUpdate.kt11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/main/kotlin/events/PlayerInventoryUpdate.kt b/src/main/kotlin/events/PlayerInventoryUpdate.kt
new file mode 100644
index 0000000..6e8203a
--- /dev/null
+++ b/src/main/kotlin/events/PlayerInventoryUpdate.kt
@@ -0,0 +1,11 @@
+
+package moe.nea.firmament.events
+
+import net.minecraft.item.ItemStack
+
+sealed class PlayerInventoryUpdate : FirmamentEvent() {
+ companion object : FirmamentEventBus<PlayerInventoryUpdate>()
+ data class Single(val slot: Int, val stack: ItemStack) : PlayerInventoryUpdate()
+ data class Multi(val contents: List<ItemStack>) : PlayerInventoryUpdate()
+
+}