collect

public Unit collect(BlockPos pos, BlockState state, ItemStack tool, List<ItemStack> droppedStacks)(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