RebarVirtualInventoryBlock

Saves and loads virtual inventories associated with the block.

When the block is broken, the contents of the virtual inventories will be dropped.

See InvUI docs for information on how to make GUIs.

See also

Functions

Link copied to clipboard

A map of inventory names to virtual inventories associated with this block

Link copied to clipboard
@MustBeInvokedByOverriders
open override fun onBreak(drops: MutableList<ItemStack>, context: BlockBreakContext)

In the case of a vanilla BlockBreakEvent this is called during the monitor priority

Link copied to clipboard
open fun postBreak(context: BlockBreakContext)

In the case of a vanilla BlockBreakEvent this is called during the monitor priority

Link copied to clipboard
open fun preBreak(context: BlockBreakContext): Boolean

Called before the block is broken. Note this is not called for Deletions as those are not cancellable.