Skip to content

exposeItemStorage

fun <T : BlockEntity> BlockEntityType<T>.exposeItemStorage(selector: (T, Direction?) -> CommonStorage<ItemResource>?)

See ArchieCapabilityExposure. Exposes this block entity type's ArchieItemStorage to ItemApi.BLOCK.

fun <T : BlockEntity> BlockEntityType<T>.exposeItemStorage(selector: (T) -> CommonStorage<ItemResource>?)

exposeItemStorage overload for a selector that doesn't need the query direction.

fun <T : BlockEntity> RegistrySupplier<BlockEntityType<T>>.exposeItemStorage(selector: (T, Direction?) -> CommonStorage<ItemResource>?)
fun <T : BlockEntity> RegistrySupplier<BlockEntityType<T>>.exposeItemStorage(selector: (T) -> CommonStorage<ItemResource>?)
fun Item.exposeItemStorage(selector: (ItemStack, ItemContext) -> CommonStorage<ItemResource>?)

Exposes this item's ArchieItemStorage (e.g. a bag/backpack's contents) to ItemApi.ITEM.