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

public abstract class StateTestingPredicate extends Object implements BlockPredicate
  • Field Details

    • offset

      protected final Vec3i offset
  • Constructor Details

    • StateTestingPredicate

      protected StateTestingPredicate(Vec3i offset)
  • 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

      public final boolean test(WorldGenLevel level, BlockPos origin)
      Specified by:
      test in interface BiPredicate<WorldGenLevel, BlockPos>
    • test

      protected abstract boolean test(BlockState state)