Interface BlockPredicate
- All Superinterfaces:
BiPredicate<WorldGenLevel,BlockPos>
- All Known Implementing Classes:
AllOfPredicate,AnyOfPredicate,CombiningPredicate,HasSturdyFacePredicate,InsideWorldBoundsPredicate,MatchingBlocksPredicate,MatchingBlockTagPredicate,MatchingFluidsPredicate,NotPredicate,ReplaceablePredicate,SolidPredicate,StateTestingPredicate,TrueBlockPredicate,UnobstructedPredicate,WouldSurvivePredicate
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<BlockPredicate> static final BlockPredicatestatic final BlockPredicate -
Method Summary
Modifier and TypeMethodDescriptionstatic BlockPredicateallOf(List<BlockPredicate> pPredicates) static BlockPredicateallOf(BlockPredicate... pPredicates) static BlockPredicateallOf(BlockPredicate pPredicate1, BlockPredicate pPredicate2) static BlockPredicatestatic BlockPredicateanyOf(List<BlockPredicate> pPredicates) static BlockPredicateanyOf(BlockPredicate... pPredicates) static BlockPredicateanyOf(BlockPredicate pPredicate1, BlockPredicate pPredicate2) static BlockPredicatehasSturdyFace(Direction pDirection) static BlockPredicatehasSturdyFace(Vec3i pOffset, Direction pDirection) static BlockPredicateinsideWorld(Vec3i pOffset) static BlockPredicatematchesBlocks(List<Block> pBlocks) static BlockPredicatematchesBlocks(Vec3i pOffset, List<Block> pBlocks) static BlockPredicatematchesBlocks(Vec3i pOffset, Block... pBlocks) static BlockPredicatematchesBlocks(Block... pBlocks) static BlockPredicatematchesFluids(Vec3i pOffset, List<Fluid> pFluids) static BlockPredicatematchesFluids(Vec3i pOffset, Fluid... pFluids) static BlockPredicatematchesFluids(Fluid... pFluids) static BlockPredicatematchesTag(Vec3i pOffset, TagKey<Block> pTag) static BlockPredicatematchesTag(TagKey<Block> pTag) static BlockPredicatenoFluid()static BlockPredicatestatic BlockPredicatenot(BlockPredicate pPredicate) static BlockPredicatestatic BlockPredicatereplaceable(Vec3i pOffset) static BlockPredicatesolid()static BlockPredicatetype()static BlockPredicatestatic BlockPredicateunobstructed(Vec3i pOffset) static BlockPredicatewouldSurvive(BlockState pState, Vec3i pOffset) Methods inherited from interface java.util.function.BiPredicate
and, negate, or, test
-
Field Details
-
CODEC
-
ONLY_IN_AIR_PREDICATE
-
ONLY_IN_AIR_OR_WATER_PREDICATE
-
-
Method Details
-
type
BlockPredicateType<?> type() -
allOf
-
allOf
-
allOf
-
anyOf
-
anyOf
-
anyOf
-
matchesBlocks
-
matchesBlocks
-
matchesBlocks
-
matchesBlocks
-
matchesTag
-
matchesTag
-
matchesFluids
-
matchesFluids
-
matchesFluids
-
not
-
replaceable
-
replaceable
-
wouldSurvive
-
hasSturdyFace
-
hasSturdyFace
-
solid
-
solid
-
noFluid
-
noFluid
-
insideWorld
-
alwaysTrue
-
unobstructed
-
unobstructed
-