BlockUtils

object BlockUtils

Functions

Link copied to clipboard

Breaks this block using the given ctx and returns the drops.

Link copied to clipboard

Breaks this block naturally using the given ctx.

Link copied to clipboard

Gets a list of ItemStacks containing the drops of this Block for the specified ctx.

Link copied to clipboard

Gets the experience that would be dropped if the block were to be broken.

Link copied to clipboard
fun getName(block: Block): Component

Gets the name of block as a Component. Works for Nova blocks, custom item services and vanilla blocks.

Link copied to clipboard

Places a block using the given Context.

Link copied to clipboard

Changes the state of the custom Nova block at pos to blockState.