Kotlin utilities for Quilt mod development
//kettle/coffee.cypher.kettle.inventory/getSideAccess
[jvm]
fun Inventory.getSideAccess(side: Direction): Inventory
Creates a proxy Inventory that only represents slots of this Inventory available from the specified side.
Any changes to the proxy’s contents will be applied to the base inventory’s corresponding slots, and vice versa.
The size and slots of the proxy can change, if the base inventory changes which slots are accessible from the specified side.