useOnBlock

open override fun useOnBlock(itemStack: ItemStack, block: Block, ctx: Context<BlockInteract>): InteractionResult

Uses the itemStack with this behavior on the given block.

If all behaviors return InteractionResult.Pass, use will be called.