MergerBlockDropCollector

public final class MergerBlockDropCollector implements IBlockDropCollector(source)

A block drop collector, which merges compatible items passed in, and drops them at their (non-weighed) average position.

Constructors

Functions

Link copied to clipboard
public Unit collect(BlockPos pos, BlockState state, ItemStack tool, List<ItemStack> droppedStacks)

Stores the dropped items of a broken block.

Link copied to clipboard
public Unit dropAll(ServerWorld world)

Drops all collected items into the world.

Inherited functions

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

Stores the dropped items of a broken block.