diff options
Diffstat (limited to 'src/main/kotlin/moe/nea/firmament/events/PlayerInventoryUpdate.kt')
-rw-r--r-- | src/main/kotlin/moe/nea/firmament/events/PlayerInventoryUpdate.kt | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/main/kotlin/moe/nea/firmament/events/PlayerInventoryUpdate.kt b/src/main/kotlin/moe/nea/firmament/events/PlayerInventoryUpdate.kt new file mode 100644 index 0000000..3afdbe3 --- /dev/null +++ b/src/main/kotlin/moe/nea/firmament/events/PlayerInventoryUpdate.kt @@ -0,0 +1,16 @@ +/* + * SPDX-FileCopyrightText: 2024 Linnea Gräf <nea@nea.moe> + * + * SPDX-License-Identifier: GPL-3.0-or-later + */ + +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() + +} |