IBlockDropCollector

Functions

Link copied to clipboard
public abstract Unit collect(BlockPos pos, BlockState state, ItemStack tool, List<ItemStack> droppedStacks)
public Unit collect(ServerWorld world, BlockPos pos, BlockState state, BlockEntity blockEntity, Entity destroyer, ItemStack tool)

Stores the dropped items of a broken block.

Link copied to clipboard
public abstract Unit dropAll(ServerWorld world)

Drops all collected items into the world.