aboutsummaryrefslogtreecommitdiff
path: root/src/main/kotlin/events/ChestInventoryUpdateEvent.kt
blob: ddf54fc91b612a938156ae734e0a273f6a6e7a41 (plain)
1
2
3
4
5
6
7
8
9
10
11
package moe.nea.firmament.events

import net.minecraft.item.ItemStack
import moe.nea.firmament.util.MC

sealed class ChestInventoryUpdateEvent : FirmamentEvent() {
	companion object : FirmamentEventBus<ChestInventoryUpdateEvent>()
	data class Single(val slot: Int, val stack: ItemStack) : ChestInventoryUpdateEvent()
	data class Multi(val contents: List<ItemStack>) : ChestInventoryUpdateEvent()
	val inventory = MC.screen
}