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
official dje
intermediary net/minecraft/class_6681
named net/minecraft/world/gen/blockpredicate/WouldSurviveBlockPredicate
  • Field Details

    • CODEC

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

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

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

    • WouldSurviveBlockPredicate

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

    • test

      public boolean test(StructureWorldAccess structureWorldAccess, BlockPos blockPos)
      Specified by:
      test in interface BiPredicate<StructureWorldAccess,BlockPos>
      Mappings:
      Namespace Name Mixin selector
      official a Ldje;a(Lcng;Lgu;)Z
      intermediary method_39017 Lnet/minecraft/class_6681;method_39017(Lnet/minecraft/class_5281;Lnet/minecraft/class_2338;)Z
      named test Lnet/minecraft/world/gen/blockpredicate/WouldSurviveBlockPredicate;test(Lnet/minecraft/world/StructureWorldAccess;Lnet/minecraft/util/math/BlockPos;)Z
    • getType

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