Class EnvironmentScanPlacementModifier
java.lang.Object
net.minecraft.world.gen.decorator.PlacementModifier
net.minecraft.world.gen.decorator.EnvironmentScanPlacementModifier
- Mappings:
Namespace Name official ddvintermediary net/minecraft/class_6794named net/minecraft/world/gen/decorator/EnvironmentScanPlacementModifier
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final BlockPredicateprivate final Directionprivate final intstatic final com.mojang.serialization.Codec<EnvironmentScanPlacementModifier>private final BlockPredicateFields inherited from class net.minecraft.world.gen.decorator.PlacementModifier
CODEC -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateEnvironmentScanPlacementModifier(Direction direction, BlockPredicate targetPredicate, BlockPredicate allowedSearchPredicate, int maxSteps) -
Method Summary
Modifier and TypeMethodDescriptiongetPositions(DecoratorContext context, Random random, BlockPos pos) Applies this placement modifier to the given position.getType()of(Direction direction, BlockPredicate targetPredicate, int maxSteps) of(Direction direction, BlockPredicate targetPredicate, BlockPredicate allowedSearchPredicate, int maxSteps)
-
Field Details
-
MODIFIER_CODEC
- Mappings:
Namespace Name Mixin selector official aLddv;a:Lcom/mojang/serialization/Codec;intermediary field_35720Lnet/minecraft/class_6794;field_35720:Lcom/mojang/serialization/Codec;named MODIFIER_CODECLnet/minecraft/world/gen/decorator/EnvironmentScanPlacementModifier;MODIFIER_CODEC:Lcom/mojang/serialization/Codec;
-
direction
- Mappings:
Namespace Name Mixin selector official cLddv;c:Lgm;intermediary field_35721Lnet/minecraft/class_6794;field_35721:Lnet/minecraft/class_2350;named directionLnet/minecraft/world/gen/decorator/EnvironmentScanPlacementModifier;direction:Lnet/minecraft/util/math/Direction;
-
targetPredicate
- Mappings:
Namespace Name Mixin selector official dLddv;d:Lcun;intermediary field_35722Lnet/minecraft/class_6794;field_35722:Lnet/minecraft/class_6646;named targetPredicateLnet/minecraft/world/gen/decorator/EnvironmentScanPlacementModifier;targetPredicate:Lnet/minecraft/world/gen/blockpredicate/BlockPredicate;
-
allowedSearchPredicate
- Mappings:
Namespace Name Mixin selector official eLddv;e:Lcun;intermediary field_35723Lnet/minecraft/class_6794;field_35723:Lnet/minecraft/class_6646;named allowedSearchPredicateLnet/minecraft/world/gen/decorator/EnvironmentScanPlacementModifier;allowedSearchPredicate:Lnet/minecraft/world/gen/blockpredicate/BlockPredicate;
-
maxSteps
private final int maxSteps- Mappings:
Namespace Name Mixin selector official fLddv;f:Iintermediary field_35724Lnet/minecraft/class_6794;field_35724:Inamed maxStepsLnet/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>Lddv;<init>(Lgm;Lcun;Lcun;I)Vintermediary <init>Lnet/minecraft/class_6794;<init>(Lnet/minecraft/class_2350;Lnet/minecraft/class_6646;Lnet/minecraft/class_6646;I)Vnamed <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 aLddv;a(Lgm;Lcun;Lcun;I)Lddv;intermediary method_39629Lnet/minecraft/class_6794;method_39629(Lnet/minecraft/class_2350;Lnet/minecraft/class_6646;Lnet/minecraft/class_6646;I)Lnet/minecraft/class_6794;named ofLnet/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 aLddv;a(Lgm;Lcun;I)Lddv;intermediary method_39628Lnet/minecraft/class_6794;method_39628(Lnet/minecraft/class_2350;Lnet/minecraft/class_6646;I)Lnet/minecraft/class_6794;named ofLnet/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
Applies this placement modifier to the given position.- Specified by:
getPositionsin classPlacementModifier- Mappings:
Namespace Name Mixin selector official a_Ldee;a_(Ldec;Ljava/util/Random;Lgh;)Ljava/util/stream/Stream;intermediary method_14452Lnet/minecraft/class_6797;method_14452(Lnet/minecraft/class_5444;Ljava/util/Random;Lnet/minecraft/class_2338;)Ljava/util/stream/Stream;named getPositionsLnet/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
- Specified by:
getTypein classPlacementModifier- Mappings:
Namespace Name Mixin selector official bLdee;b()Ldef;intermediary method_39615Lnet/minecraft/class_6797;method_39615()Lnet/minecraft/class_6798;named getTypeLnet/minecraft/world/gen/decorator/PlacementModifier;getType()Lnet/minecraft/world/gen/decorator/PlacementModifierType;
-