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 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> instance) protected abstract booleantest(BlockState state) final booleantest(WorldGenLevel level, BlockPos origin) Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface BiPredicate
and, negate, orMethods inherited from interface 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> instance) -
test
- Specified by:
testin interfaceBiPredicate<WorldGenLevel, BlockPos>
-
test
-