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 BlockPredicate
static final BlockPredicate
-
Method Summary
Modifier and TypeMethodDescriptionstatic BlockPredicate
allOf
(List<BlockPredicate> predicates) static BlockPredicate
allOf
(BlockPredicate... predicates) static BlockPredicate
allOf
(BlockPredicate predicate1, BlockPredicate predicate2) static BlockPredicate
static BlockPredicate
anyOf
(List<BlockPredicate> predicates) static BlockPredicate
anyOf
(BlockPredicate... predicates) static BlockPredicate
anyOf
(BlockPredicate predicate1, BlockPredicate predicate2) static BlockPredicate
hasSturdyFace
(Direction direction) static BlockPredicate
hasSturdyFace
(Vec3i offset, Direction direction) static BlockPredicate
insideWorld
(Vec3i offset) static BlockPredicate
matchesBlocks
(List<Block> blocks) static BlockPredicate
matchesBlocks
(Vec3i offset, List<Block> blocks) static BlockPredicate
matchesBlocks
(Vec3i offset, Block... blocks) static BlockPredicate
matchesBlocks
(Block... blocks) static BlockPredicate
matchesFluids
(Vec3i offset, List<Fluid> fluids) static BlockPredicate
matchesFluids
(Vec3i offset, Fluid... fluids) static BlockPredicate
matchesFluids
(Fluid... fluids) static BlockPredicate
matchesTag
(Vec3i offset, TagKey<Block> tag) static BlockPredicate
matchesTag
(TagKey<Block> tag) static BlockPredicate
noFluid()
static BlockPredicate
static BlockPredicate
not
(BlockPredicate predicate) static BlockPredicate
static BlockPredicate
replaceable
(Vec3i offset) static BlockPredicate
solid()
static BlockPredicate
type()
static BlockPredicate
static BlockPredicate
unobstructed
(Vec3i offset) static BlockPredicate
wouldSurvive
(BlockState state, Vec3i offset) 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
-