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 p_190541_)
  • 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

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

      protected abstract boolean test(BlockState p_190545_)