Add basic sack util

[no changelog]
This commit is contained in:
Linnea Gräf
2024-10-01 18:00:43 +02:00
parent beb14d73bd
commit a4eac70118
22 changed files with 350 additions and 177 deletions

View File

@@ -0,0 +1,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
}