kettle

Kotlin utilities for Quilt mod development


Project maintained by Cypher121 Hosted on GitHub Pages — Theme by mattgraham

//kettle/coffee.cypher.kettle.inventory/getSideAccess

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.