Class WouldSurviveBlockPredicate

java.lang.Object
net.minecraft.world.gen.blockpredicate.WouldSurviveBlockPredicate
All Implemented Interfaces:
BiPredicate<StructureWorldAccess,BlockPos>, BlockPredicate

public class WouldSurviveBlockPredicate extends Object implements BlockPredicate
Mappings:
Namespace Name
named net/minecraft/world/gen/blockpredicate/WouldSurviveBlockPredicate
intermediary net/minecraft/class_6681
official eaq
  • Field Details

    • CODEC

      public static final com.mojang.serialization.MapCodec<WouldSurviveBlockPredicate> CODEC
      Mappings:
      Namespace Name Mixin selector
      named CODEC Lnet/minecraft/world/gen/blockpredicate/WouldSurviveBlockPredicate;CODEC:Lcom/mojang/serialization/MapCodec;
      intermediary field_35160 Lnet/minecraft/class_6681;field_35160:Lcom/mojang/serialization/MapCodec;
      official a Leaq;a:Lcom/mojang/serialization/MapCodec;
    • offset

      private final Vec3i offset
      Mappings:
      Namespace Name Mixin selector
      named offset Lnet/minecraft/world/gen/blockpredicate/WouldSurviveBlockPredicate;offset:Lnet/minecraft/util/math/Vec3i;
      intermediary field_35161 Lnet/minecraft/class_6681;field_35161:Lnet/minecraft/class_2382;
      official e Leaq;e:Lkh;
    • state

      private final BlockState state
      Mappings:
      Namespace Name Mixin selector
      named state Lnet/minecraft/world/gen/blockpredicate/WouldSurviveBlockPredicate;state:Lnet/minecraft/block/BlockState;
      intermediary field_35162 Lnet/minecraft/class_6681;field_35162:Lnet/minecraft/class_2680;
      official f Leaq;f:Ldta;
  • Constructor Details

    • WouldSurviveBlockPredicate

      protected WouldSurviveBlockPredicate(Vec3i offset, BlockState state)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/world/gen/blockpredicate/WouldSurviveBlockPredicate;<init>(Lnet/minecraft/util/math/Vec3i;Lnet/minecraft/block/BlockState;)V
      intermediary <init> Lnet/minecraft/class_6681;<init>(Lnet/minecraft/class_2382;Lnet/minecraft/class_2680;)V
      official <init> Leaq;<init>(Lkh;Ldta;)V
  • Method Details

    • test

      public 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/WouldSurviveBlockPredicate;test(Lnet/minecraft/world/StructureWorldAccess;Lnet/minecraft/util/math/BlockPos;)Z
      intermediary method_39017 Lnet/minecraft/class_6681;method_39017(Lnet/minecraft/class_5281;Lnet/minecraft/class_2338;)Z
      official a Leaq;a(Lddq;Ljd;)Z
    • getType

      public BlockPredicateType<?> getType()
      Specified by:
      getType in interface BlockPredicate
      Mappings:
      Namespace Name Mixin selector
      named getType Lnet/minecraft/world/gen/blockpredicate/BlockPredicate;getType()Lnet/minecraft/world/gen/blockpredicate/BlockPredicateType;
      intermediary method_38873 Lnet/minecraft/class_6646;method_38873()Lnet/minecraft/class_6647;
      official a Leac;a()Lead;