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
official dbj
intermediary net/minecraft/class_6679
named net/minecraft/world/gen/blockpredicate/OffsetPredicate
  • Field Details

    • offset

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

    • OffsetPredicate

      protected OffsetPredicate(Vec3i offset)
      Mappings:
      Namespace Name Mixin selector
      official <init> Ldbj;<init>(Lhs;)V
      intermediary <init> Lnet/minecraft/class_6679;<init>(Lnet/minecraft/class_2382;)V
      named <init> Lnet/minecraft/world/gen/blockpredicate/OffsetPredicate;<init>(Lnet/minecraft/util/math/Vec3i;)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
      official a Ldbj;a(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;
      named registerOffsetField Lnet/minecraft/world/gen/blockpredicate/OffsetPredicate;registerOffsetField(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
      official a Ldbj;a(Lcgs;Lgt;)Z
      intermediary method_39012 Lnet/minecraft/class_6679;method_39012(Lnet/minecraft/class_5281;Lnet/minecraft/class_2338;)Z
      named test Lnet/minecraft/world/gen/blockpredicate/OffsetPredicate;test(Lnet/minecraft/world/StructureWorldAccess;Lnet/minecraft/util/math/BlockPos;)Z
    • test

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