Uses of Interface
net.minecraft.world.level.blockscan.BlockStateConsumer
Packages that use BlockStateConsumer
-
Uses of BlockStateConsumer in net.minecraft.world.level.blockscan
Methods in net.minecraft.world.level.blockscan with parameters of type BlockStateConsumerModifier and TypeMethodDescription(package private) static booleanBlockScanUtils.findBlocks(LevelReader level, BlockPos from, BlockPos to, Predicate<BlockState> predicate, BiPredicate<BlockState, BlockPos> positionPredicate, BlockStateConsumer consumer) Neo: Add overload ofBlockScanUtils.findBlocks(LevelReader, BlockPos, BlockPos, Predicate, BlockStateConsumer)which accepts a position-based predicate (evaluated only if the state predicate accepts)(package private) static booleanBlockScanUtils.findBlocks(LevelReader level, BlockPos from, BlockPos to, Predicate<BlockState> predicate, BlockStateConsumer consumer) static booleanBlockScanUtils.findBlocksInSection(LevelChunkSection section, BlockPos origin, int fromX, int fromY, int fromZ, int toX, int toY, int toZ, Predicate<BlockState> predicate, BiPredicate<BlockState, BlockPos> positionPredicate, BlockStateConsumer consumer) Neo: Add overload ofBlockScanUtils.findBlocksInSection(LevelChunkSection, BlockPos, int, int, int, int, int, int, Predicate, BlockStateConsumer)which accepts a position-based predicate (evaluated only if the state predicate accepts)static booleanBlockScanUtils.findBlocksInSection(LevelChunkSection section, BlockPos origin, int fromX, int fromY, int fromZ, int toX, int toY, int toZ, Predicate<BlockState> predicate, BlockStateConsumer consumer) (package private) static booleanBlockScanUtils.findBlocksWithCache(LevelReader level, Iterable<BlockPos> positions, Predicate<BlockState> predicate, BiPredicate<BlockState, BlockPos> positionPredicate, BlockStateConsumer consumer) Neo: Add overload ofBlockScanUtils.findBlocksWithCache(LevelReader, Iterable, Predicate, BlockStateConsumer)which accepts a position-based predicate (evaluated only if the state predicate accepts)(package private) static booleanBlockScanUtils.findBlocksWithCache(LevelReader level, Iterable<BlockPos> positions, Predicate<BlockState> predicate, BlockStateConsumer consumer) abstract booleanBlockMatcher.forEachUntil(BlockStateConsumer consumer) booleanBoxBlockMatcher.forEachUntil(BlockStateConsumer consumer) booleanOrderedBlockMatcher.forEachUntil(BlockStateConsumer consumer) private static booleanBlockScanUtils.sectionBasedScan(LevelReader level, int minX, int minY, int minZ, int maxX, int maxY, int maxZ, Predicate<BlockState> predicate, BiPredicate<BlockState, BlockPos> positionPredicate, BlockStateConsumer consumer) Neo: Add overload ofBlockScanUtils.sectionBasedScan(LevelReader, int, int, int, int, int, int, Predicate, BlockStateConsumer)which accepts a position-based predicate (evaluated only if the state predicate accepts)private static booleanBlockScanUtils.sectionBasedScan(LevelReader level, int minX, int minY, int minZ, int maxX, int maxY, int maxZ, Predicate<BlockState> predicate, BlockStateConsumer consumer)