Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,16 @@ abstract class PylonInventoryBlock(block: Block) :
}
}

fun getItems() : List<ItemStack> {
val items = mutableListOf<ItemStack>()
for(inv in inventories){
for(item in inv.items){
item?.let(items::add)
}
}
return items
Comment thread
Seggan marked this conversation as resolved.
Outdated
}

companion object {
private val inventoryKey = pylonKey("inventories")
private val inventoryType =
Expand Down
Loading