collect

open override fun collect(pos: BlockPos, state: BlockState, tool: ItemStack, droppedStacks: List<ItemStack>)(source)

Stores the dropped items of a broken block.

Parameters

pos

The position of the broken block

state

The block state broken

tool

The item used to break the block

droppedStacks

The dropped items of the block