breakBlock
Breaks the given block with a suitable tool, dropping items on the ground.
Breaks the given block with the tool, dropping items on the ground.
abstract fun breakBlock(block: BlockT, tool: ItemStackT? = null, dropsConsumer: DropsConsumer<ItemStackT>): Boolean(source)
Breaks the given block with the tool and passes the dropped items to the dropsConsumer.
If tool is null, drops are the same as for a suitable tool without enchantments. Pass an empty item to break the block by hand. Only items are dropped, without experience and break effects. Use DropsConsumer.disappear to drop nothing.
Returns false if the block can't be broken or doesn't belong to this registry.