StorageComponent

open class StorageComponent(val space: ComponentSpace, val fits: (ItemStack) -> Boolean = { true }, val onPut: (UIClickData, ItemStack) -> Unit = { _, _ -> }, val onTake: (UIClickData, ItemStack) -> Unit = { _, _ -> }) : SpacedComponent(source)

Constructors

Link copied to clipboard
constructor(space: ComponentSpace, fits: (ItemStack) -> Boolean = { true }, onPut: (UIClickData, ItemStack) -> Unit = { _, _ -> }, onTake: (UIClickData, ItemStack) -> Unit = { _, _ -> })

Functions

Link copied to clipboard
open override fun handleClick(click: UIClickData)
Link copied to clipboard
open override fun render(inv: Inventory): ItemStack
open override fun render(inv: Inventory, ui: MacrocosmUI)
Link copied to clipboard
open override fun wasClicked(slot: Int, dim: UIDimensions): Boolean

Properties

Link copied to clipboard
val fits: (ItemStack) -> Boolean
Link copied to clipboard
val onPut: (UIClickData, ItemStack) -> Unit
Link copied to clipboard
val onTake: (UIClickData, ItemStack) -> Unit
Link copied to clipboard
Link copied to clipboard
var stored: ItemStack