Class EnvironmentScanPlacementModifier

java.lang.Object
net.minecraft.world.gen.decorator.PlacementModifier
net.minecraft.world.gen.decorator.EnvironmentScanPlacementModifier

public class EnvironmentScanPlacementModifier extends PlacementModifier
Mappings:
Namespace Name
official ddg
intermediary net/minecraft/class_6794
named net/minecraft/world/gen/decorator/EnvironmentScanPlacementModifier
  • Field Details

    • MODIFIER_CODEC

      public static final com.mojang.serialization.Codec<EnvironmentScanPlacementModifier> MODIFIER_CODEC
      Mappings:
      Namespace Name Mixin selector
      official a Lddg;a:Lcom/mojang/serialization/Codec;
      intermediary field_35720 Lnet/minecraft/class_6794;field_35720:Lcom/mojang/serialization/Codec;
      named MODIFIER_CODEC Lnet/minecraft/world/gen/decorator/EnvironmentScanPlacementModifier;MODIFIER_CODEC:Lcom/mojang/serialization/Codec;
    • direction

      private final Direction direction
      Mappings:
      Namespace Name Mixin selector
      official c Lddg;c:Lgm;
      intermediary field_35721 Lnet/minecraft/class_6794;field_35721:Lnet/minecraft/class_2350;
      named direction Lnet/minecraft/world/gen/decorator/EnvironmentScanPlacementModifier;direction:Lnet/minecraft/util/math/Direction;
    • targetPredicate

      private final BlockPredicate targetPredicate
      Mappings:
      Namespace Name Mixin selector
      official d Lddg;d:Lcua;
      intermediary field_35722 Lnet/minecraft/class_6794;field_35722:Lnet/minecraft/class_6646;
      named targetPredicate Lnet/minecraft/world/gen/decorator/EnvironmentScanPlacementModifier;targetPredicate:Lnet/minecraft/world/gen/blockpredicate/BlockPredicate;
    • allowedSearchPredicate

      private final BlockPredicate allowedSearchPredicate
      Mappings:
      Namespace Name Mixin selector
      official e Lddg;e:Lcua;
      intermediary field_35723 Lnet/minecraft/class_6794;field_35723:Lnet/minecraft/class_6646;
      named allowedSearchPredicate Lnet/minecraft/world/gen/decorator/EnvironmentScanPlacementModifier;allowedSearchPredicate:Lnet/minecraft/world/gen/blockpredicate/BlockPredicate;
    • maxSteps

      private final int maxSteps
      Mappings:
      Namespace Name Mixin selector
      official f Lddg;f:I
      intermediary field_35724 Lnet/minecraft/class_6794;field_35724:I
      named maxSteps Lnet/minecraft/world/gen/decorator/EnvironmentScanPlacementModifier;maxSteps:I
  • Constructor Details

    • EnvironmentScanPlacementModifier

      private EnvironmentScanPlacementModifier(Direction direction, BlockPredicate targetPredicate, BlockPredicate allowedSearchPredicate, int maxSteps)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lddg;<init>(Lgm;Lcua;Lcua;I)V
      intermediary <init> Lnet/minecraft/class_6794;<init>(Lnet/minecraft/class_2350;Lnet/minecraft/class_6646;Lnet/minecraft/class_6646;I)V
      named <init> Lnet/minecraft/world/gen/decorator/EnvironmentScanPlacementModifier;<init>(Lnet/minecraft/util/math/Direction;Lnet/minecraft/world/gen/blockpredicate/BlockPredicate;Lnet/minecraft/world/gen/blockpredicate/BlockPredicate;I)V
  • Method Details

    • of

      public static EnvironmentScanPlacementModifier of(Direction direction, BlockPredicate targetPredicate, BlockPredicate allowedSearchPredicate, int maxSteps)
      Mappings:
      Namespace Name Mixin selector
      official a Lddg;a(Lgm;Lcua;Lcua;I)Lddg;
      intermediary method_39629 Lnet/minecraft/class_6794;method_39629(Lnet/minecraft/class_2350;Lnet/minecraft/class_6646;Lnet/minecraft/class_6646;I)Lnet/minecraft/class_6794;
      named of Lnet/minecraft/world/gen/decorator/EnvironmentScanPlacementModifier;of(Lnet/minecraft/util/math/Direction;Lnet/minecraft/world/gen/blockpredicate/BlockPredicate;Lnet/minecraft/world/gen/blockpredicate/BlockPredicate;I)Lnet/minecraft/world/gen/decorator/EnvironmentScanPlacementModifier;
    • of

      public static EnvironmentScanPlacementModifier of(Direction direction, BlockPredicate targetPredicate, int maxSteps)
      Mappings:
      Namespace Name Mixin selector
      official a Lddg;a(Lgm;Lcua;I)Lddg;
      intermediary method_39628 Lnet/minecraft/class_6794;method_39628(Lnet/minecraft/class_2350;Lnet/minecraft/class_6646;I)Lnet/minecraft/class_6794;
      named of Lnet/minecraft/world/gen/decorator/EnvironmentScanPlacementModifier;of(Lnet/minecraft/util/math/Direction;Lnet/minecraft/world/gen/blockpredicate/BlockPredicate;I)Lnet/minecraft/world/gen/decorator/EnvironmentScanPlacementModifier;
    • getPositions

      public Stream<BlockPos> getPositions(DecoratorContext context, Random random, BlockPos pos)
      Specified by:
      getPositions in class PlacementModifier
      Mappings:
      Namespace Name Mixin selector
      official a_ Lddp;a_(Lddn;Ljava/util/Random;Lgh;)Ljava/util/stream/Stream;
      intermediary method_14452 Lnet/minecraft/class_6797;method_14452(Lnet/minecraft/class_5444;Ljava/util/Random;Lnet/minecraft/class_2338;)Ljava/util/stream/Stream;
      named getPositions Lnet/minecraft/world/gen/decorator/PlacementModifier;getPositions(Lnet/minecraft/world/gen/decorator/DecoratorContext;Ljava/util/Random;Lnet/minecraft/util/math/BlockPos;)Ljava/util/stream/Stream;
    • getType

      public PlacementModifierType<?> getType()
      Specified by:
      getType in class PlacementModifier
      Mappings:
      Namespace Name Mixin selector
      official b Lddp;b()Lddq;
      intermediary method_39615 Lnet/minecraft/class_6797;method_39615()Lnet/minecraft/class_6798;
      named getType Lnet/minecraft/world/gen/decorator/PlacementModifier;getType()Lnet/minecraft/world/gen/decorator/PlacementModifierType;