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> predicates) static BlockPredicateallOf(BlockPredicate... predicates) static BlockPredicatestatic BlockPredicatestatic BlockPredicateanyOf(List<BlockPredicate> predicates) static BlockPredicateanyOf(BlockPredicate... predicates) static BlockPredicatestatic BlockPredicatehasSturdyFace(Direction direction) static BlockPredicatehasSturdyFace(Vec3i offset, Direction direction) static BlockPredicateinsideWorld(Vec3i offset) static BlockPredicatematchesBlocks(List<Block> blocks) static BlockPredicatematchesBlocks(Vec3i offset, List<Block> blocks) static BlockPredicatematchesBlocks(Vec3i offset, Block... blocks) static BlockPredicatematchesBlocks(Block... blocks) static BlockPredicatematchesFluids(Vec3i offset, List<Fluid> fluids) static BlockPredicatematchesFluids(Vec3i offset, Fluid... fluids) static BlockPredicatematchesFluids(Fluid... fluids) static BlockPredicatematchesTag(Vec3i offset, TagKey<Block> tag) static BlockPredicatematchesTag(TagKey<Block> tag) static BlockPredicatenoFluid()static BlockPredicatestatic BlockPredicatenot(BlockPredicate predicate) static BlockPredicatestatic BlockPredicatereplaceable(Vec3i offset) static BlockPredicatesolid()static BlockPredicatetype()static BlockPredicatestatic BlockPredicateunobstructed(Vec3i offset) static BlockPredicatewouldSurvive(BlockState state, Vec3i offset) Methods inherited from interface 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
-