Class StateTestingPredicate
java.lang.Object
net.minecraft.world.level.levelgen.blockpredicates.StateTestingPredicate
- All Implemented Interfaces:
BiPredicate<WorldGenLevel,
,BlockPos> BlockPredicate
- Direct Known Subclasses:
MatchingBlocksPredicate
,MatchingBlockTagPredicate
,MatchingFluidsPredicate
,ReplaceablePredicate
,SolidPredicate
-
Field Summary
FieldsFields inherited from interface net.minecraft.world.level.levelgen.blockpredicates.BlockPredicate
CODEC, ONLY_IN_AIR_OR_WATER_PREDICATE, ONLY_IN_AIR_PREDICATE
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected static <P extends StateTestingPredicate>
com.mojang.datafixers.Products.P1<com.mojang.serialization.codecs.RecordCodecBuilder.Mu<P>, Vec3i> stateTestingCodec
(com.mojang.serialization.codecs.RecordCodecBuilder.Instance<P> p_190547_) protected abstract boolean
test
(BlockState pState) final boolean
test
(WorldGenLevel pLevel, BlockPos pPos) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.function.BiPredicate
and, negate, or
Methods inherited from interface net.minecraft.world.level.levelgen.blockpredicates.BlockPredicate
type
-
Field Details
-
offset
-
-
Constructor Details
-
StateTestingPredicate
-
-
Method Details
-
stateTestingCodec
protected static <P extends StateTestingPredicate> com.mojang.datafixers.Products.P1<com.mojang.serialization.codecs.RecordCodecBuilder.Mu<P>,Vec3i> stateTestingCodec(com.mojang.serialization.codecs.RecordCodecBuilder.Instance<P> p_190547_) -
test
- Specified by:
test
in interfaceBiPredicate<WorldGenLevel,
BlockPos>
-
test
-