Class OrderedBlockMatcher
java.lang.Object
net.minecraft.world.level.blockscan.BlockMatcher
net.minecraft.world.level.blockscan.OrderedBlockMatcher
-
Field Summary
FieldsFields inherited from class BlockMatcher
level, NO_POSITION_PREDICATE, positionPredicate, statePredicate -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleananyMatched(Predicate<BlockState> statePredicate, BiPredicate<BlockState, BlockPos> positionPredicate) Neo: Returns whether any block matched both predicates.booleanatLeastMatched(int n) filterPosition(BiPredicate<BlockState, BlockPos> predicate) Neo: apply the given position-sensitive predicatefilterState(Predicate<BlockState> predicate) findFirst(BiPredicate<BlockPos, BlockState> predicate) voidforEach(BiConsumer<BlockPos, BlockState> consumer) booleanforEachUntil(BlockStateConsumer consumer) Methods inherited from class BlockMatcher
allMatched, anyMatched, anyMatched, atMostMatched, noneMatched
-
Field Details
-
positions
-
-
Constructor Details
-
OrderedBlockMatcher
-
-
Method Details
-
filterPos
-
filterState
- Overrides:
filterStatein classBlockMatcher
-
filterPosition
Neo: apply the given position-sensitive predicate- Overrides:
filterPositionin classBlockMatcher- Parameters:
predicate- a filter based on state and (mutable) position- Returns:
- this matcher, for chaining
-
atLeastMatched
public boolean atLeastMatched(int n) - Specified by:
atLeastMatchedin classBlockMatcher
-
anyMatched
protected boolean anyMatched(Predicate<BlockState> statePredicate, BiPredicate<BlockState, BlockPos> positionPredicate) Description copied from class:BlockMatcherNeo: Returns whether any block matched both predicates.- Specified by:
anyMatchedin classBlockMatcher- Returns:
- whether any block matched both predicates
-
forEach
- Specified by:
forEachin classBlockMatcher
-
forEachUntil
- Specified by:
forEachUntilin classBlockMatcher
-
findFirst
-
findFirst
-