Interface BlockPredicate
- All Superinterfaces:
Predicate<net.minecraft.world.level.block.state.pattern.BlockInWorld>, SimpleBlockPredicate
- All Known Subinterfaces:
BlockFilter
- All Known Implementing Classes:
AnyBlockFilter, BlockAndFilter, BlockIdFilter, BlockNotFilter, BlockOrFilter, BlockStateFilter, BlockTypeTagFilter, BlockXorFilter, NoneBlockFilter, SimpleBlockFilter
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface
public interface BlockPredicate
extends Predicate<net.minecraft.world.level.block.state.pattern.BlockInWorld>, SimpleBlockPredicate
-
Method Summary
Modifier and TypeMethodDescriptionstatic BlockPredicateof(SimpleBlockPredicate simple) default booleantest(net.minecraft.world.level.LevelReader level, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state)
-
Method Details
-
of
-
test
default boolean test(net.minecraft.world.level.LevelReader level, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state) - Specified by:
testin interfaceSimpleBlockPredicate
-