InventorySizes
object InventorySizesfun isSlotIn(bag: InventoryDefinition, slot: Int): Boolean { val size = InventorySizes.of(bag.id) return slot in 0 until size}fun of(inventoryId: Int): Intobject InventorySizesfun isSlotIn(bag: InventoryDefinition, slot: Int): Boolean { val size = InventorySizes.of(bag.id) return slot in 0 until size}fun of(inventoryId: Int): Int