Class OffsetPredicate

java.lang.Object
net.minecraft.world.gen.blockpredicate.OffsetPredicate
All Implemented Interfaces:
BiPredicate<StructureWorldAccess,BlockPos>, BlockPredicate
Direct Known Subclasses:
MatchingBlocksBlockPredicate, MatchingBlockTagPredicate, MatchingFluidsBlockPredicate, ReplaceableBlockPredicate, SolidBlockPredicate

public abstract class OffsetPredicate extends Object implements BlockPredicate
Mappings:
Namespace Name
named net/minecraft/world/gen/blockpredicate/OffsetPredicate
intermediary net/minecraft/class_6679
official dzo
  • Field Details

    • offset

      protected final Vec3i offset
      Mappings:
      Namespace Name Mixin selector
      named offset Lnet/minecraft/world/gen/blockpredicate/OffsetPredicate;offset:Lnet/minecraft/util/math/Vec3i;
      intermediary field_35157 Lnet/minecraft/class_6679;field_35157:Lnet/minecraft/class_2382;
      official f Ldzo;f:Lkd;
  • Constructor Details

    • OffsetPredicate

      protected OffsetPredicate(Vec3i offset)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/world/gen/blockpredicate/OffsetPredicate;<init>(Lnet/minecraft/util/math/Vec3i;)V
      intermediary <init> Lnet/minecraft/class_6679;<init>(Lnet/minecraft/class_2382;)V
      official <init> Ldzo;<init>(Lkd;)V
  • Method Details

    • registerOffsetField

      protected static <P extends OffsetPredicate> com.mojang.datafixers.Products.P1<com.mojang.serialization.codecs.RecordCodecBuilder.Mu<P>,Vec3i> registerOffsetField(com.mojang.serialization.codecs.RecordCodecBuilder.Instance<P> instance)
      Mappings:
      Namespace Name Mixin selector
      named registerOffsetField Lnet/minecraft/world/gen/blockpredicate/OffsetPredicate;registerOffsetField(Lcom/mojang/serialization/codecs/RecordCodecBuilder$Instance;)Lcom/mojang/datafixers/Products$P1;
      intermediary method_39013 Lnet/minecraft/class_6679;method_39013(Lcom/mojang/serialization/codecs/RecordCodecBuilder$Instance;)Lcom/mojang/datafixers/Products$P1;
      official a Ldzo;a(Lcom/mojang/serialization/codecs/RecordCodecBuilder$Instance;)Lcom/mojang/datafixers/Products$P1;
    • test

      public final boolean test(StructureWorldAccess structureWorldAccess, BlockPos blockPos)
      Specified by:
      test in interface BiPredicate<StructureWorldAccess,BlockPos>
      Mappings:
      Namespace Name Mixin selector
      named test Lnet/minecraft/world/gen/blockpredicate/OffsetPredicate;test(Lnet/minecraft/world/StructureWorldAccess;Lnet/minecraft/util/math/BlockPos;)Z
      intermediary method_39012 Lnet/minecraft/class_6679;method_39012(Lnet/minecraft/class_5281;Lnet/minecraft/class_2338;)Z
      official a Ldzo;a(Ldcv;Liz;)Z
    • test

      protected abstract boolean test(BlockState state)
      Mappings:
      Namespace Name Mixin selector
      named test Lnet/minecraft/world/gen/blockpredicate/OffsetPredicate;test(Lnet/minecraft/block/BlockState;)Z
      intermediary method_38893 Lnet/minecraft/class_6679;method_38893(Lnet/minecraft/class_2680;)Z
      official a Ldzo;a(Ldse;)Z