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> pPredicates) static BlockPredicate
allOf
(BlockPredicate... pPredicates) static BlockPredicate
allOf
(BlockPredicate pPredicate1, BlockPredicate pPredicate2) static BlockPredicate
static BlockPredicate
anyOf
(List<BlockPredicate> pPredicates) static BlockPredicate
anyOf
(BlockPredicate... pPredicates) static BlockPredicate
anyOf
(BlockPredicate pPredicate1, BlockPredicate pPredicate2) static BlockPredicate
hasSturdyFace
(Direction pDirection) static BlockPredicate
hasSturdyFace
(Vec3i pOffset, Direction pDirection) static BlockPredicate
insideWorld
(Vec3i pOffset) static BlockPredicate
matchesBlocks
(List<Block> pBlocks) static BlockPredicate
matchesBlocks
(Vec3i pOffset, List<Block> pBlocks) static BlockPredicate
matchesBlocks
(Vec3i pOffset, Block... pBlocks) static BlockPredicate
matchesBlocks
(Block... pBlocks) static BlockPredicate
matchesFluids
(Vec3i pOffset, List<Fluid> pFluids) static BlockPredicate
matchesFluids
(Vec3i pOffset, Fluid... pFluids) static BlockPredicate
matchesFluids
(Fluid... pFluids) static BlockPredicate
matchesTag
(Vec3i pOffset, TagKey<Block> pTag) static BlockPredicate
matchesTag
(TagKey<Block> pTag) static BlockPredicate
noFluid()
static BlockPredicate
static BlockPredicate
not
(BlockPredicate pPredicate) static BlockPredicate
static BlockPredicate
replaceable
(Vec3i pOffset) static BlockPredicate
solid()
static BlockPredicate
type()
static BlockPredicate
static BlockPredicate
unobstructed
(Vec3i pOffset) static BlockPredicate
wouldSurvive
(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
-