blob: 3afdbe39cabff3f19153bdd1efbf7f2db93bddf3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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()
}
|