Class EnvironmentScanPlacementModifier
java.lang.Object
net.minecraft.world.gen.placementmodifier.PlacementModifier
net.minecraft.world.gen.placementmodifier.EnvironmentScanPlacementModifier
- Mappings:
Namespace Name named net/minecraft/world/gen/placementmodifier/EnvironmentScanPlacementModifier
intermediary net/minecraft/class_6794
official eio
-
Field Summary
Modifier and TypeFieldDescriptionprivate final BlockPredicate
private final Direction
private final int
static final com.mojang.serialization.MapCodec
<EnvironmentScanPlacementModifier> private final BlockPredicate
Fields inherited from class net.minecraft.world.gen.placementmodifier.PlacementModifier
CODEC
-
Constructor Summary
ModifierConstructorDescriptionprivate
EnvironmentScanPlacementModifier
(Direction direction, BlockPredicate targetPredicate, BlockPredicate allowedSearchPredicate, int maxSteps) -
Method Summary
Modifier and TypeMethodDescriptiongetPositions
(FeaturePlacementContext 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
public static final com.mojang.serialization.MapCodec<EnvironmentScanPlacementModifier> MODIFIER_CODEC- Mappings:
Namespace Name Mixin selector named MODIFIER_CODEC
Lnet/minecraft/world/gen/placementmodifier/EnvironmentScanPlacementModifier;MODIFIER_CODEC:Lcom/mojang/serialization/MapCodec;
intermediary field_35720
Lnet/minecraft/class_6794;field_35720:Lcom/mojang/serialization/MapCodec;
official a
Leio;a:Lcom/mojang/serialization/MapCodec;
-
direction
- Mappings:
Namespace Name Mixin selector named direction
Lnet/minecraft/world/gen/placementmodifier/EnvironmentScanPlacementModifier;direction:Lnet/minecraft/util/math/Direction;
intermediary field_35721
Lnet/minecraft/class_6794;field_35721:Lnet/minecraft/class_2350;
official c
Leio;c:Lji;
-
targetPredicate
- Mappings:
Namespace Name Mixin selector named targetPredicate
Lnet/minecraft/world/gen/placementmodifier/EnvironmentScanPlacementModifier;targetPredicate:Lnet/minecraft/world/gen/blockpredicate/BlockPredicate;
intermediary field_35722
Lnet/minecraft/class_6794;field_35722:Lnet/minecraft/class_6646;
official d
Leio;d:Leaf;
-
allowedSearchPredicate
- Mappings:
Namespace Name Mixin selector named allowedSearchPredicate
Lnet/minecraft/world/gen/placementmodifier/EnvironmentScanPlacementModifier;allowedSearchPredicate:Lnet/minecraft/world/gen/blockpredicate/BlockPredicate;
intermediary field_35723
Lnet/minecraft/class_6794;field_35723:Lnet/minecraft/class_6646;
official e
Leio;e:Leaf;
-
maxSteps
private final int maxSteps- Mappings:
Namespace Name Mixin selector named maxSteps
Lnet/minecraft/world/gen/placementmodifier/EnvironmentScanPlacementModifier;maxSteps:I
intermediary field_35724
Lnet/minecraft/class_6794;field_35724:I
official f
Leio;f:I
-
-
Constructor Details
-
EnvironmentScanPlacementModifier
private EnvironmentScanPlacementModifier(Direction direction, BlockPredicate targetPredicate, BlockPredicate allowedSearchPredicate, int maxSteps) - Mappings:
Namespace Name Mixin selector named <init>
Lnet/minecraft/world/gen/placementmodifier/EnvironmentScanPlacementModifier;<init>(Lnet/minecraft/util/math/Direction;Lnet/minecraft/world/gen/blockpredicate/BlockPredicate;Lnet/minecraft/world/gen/blockpredicate/BlockPredicate;I)V
intermediary <init>
Lnet/minecraft/class_6794;<init>(Lnet/minecraft/class_2350;Lnet/minecraft/class_6646;Lnet/minecraft/class_6646;I)V
official <init>
Leio;<init>(Lji;Leaf;Leaf;I)V
-
-
Method Details
-
of
public static EnvironmentScanPlacementModifier of(Direction direction, BlockPredicate targetPredicate, BlockPredicate allowedSearchPredicate, int maxSteps) - Mappings:
Namespace Name Mixin selector named of
Lnet/minecraft/world/gen/placementmodifier/EnvironmentScanPlacementModifier;of(Lnet/minecraft/util/math/Direction;Lnet/minecraft/world/gen/blockpredicate/BlockPredicate;Lnet/minecraft/world/gen/blockpredicate/BlockPredicate;I)Lnet/minecraft/world/gen/placementmodifier/EnvironmentScanPlacementModifier;
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;
official a
Leio;a(Lji;Leaf;Leaf;I)Leio;
-
of
public static EnvironmentScanPlacementModifier of(Direction direction, BlockPredicate targetPredicate, int maxSteps) - Mappings:
Namespace Name Mixin selector named of
Lnet/minecraft/world/gen/placementmodifier/EnvironmentScanPlacementModifier;of(Lnet/minecraft/util/math/Direction;Lnet/minecraft/world/gen/blockpredicate/BlockPredicate;I)Lnet/minecraft/world/gen/placementmodifier/EnvironmentScanPlacementModifier;
intermediary method_39628
Lnet/minecraft/class_6794;method_39628(Lnet/minecraft/class_2350;Lnet/minecraft/class_6646;I)Lnet/minecraft/class_6794;
official a
Leio;a(Lji;Leaf;I)Leio;
-
getPositions
Applies this placement modifier to the given position.- Specified by:
getPositions
in classPlacementModifier
- Mappings:
Namespace Name Mixin selector named getPositions
Lnet/minecraft/world/gen/placementmodifier/PlacementModifier;getPositions(Lnet/minecraft/world/gen/feature/FeaturePlacementContext;Lnet/minecraft/util/math/random/Random;Lnet/minecraft/util/math/BlockPos;)Ljava/util/stream/Stream;
intermediary method_14452
Lnet/minecraft/class_6797;method_14452(Lnet/minecraft/class_5444;Lnet/minecraft/class_5819;Lnet/minecraft/class_2338;)Ljava/util/stream/Stream;
official a_
Leiy;a_(Leiw;Layw;Ljd;)Ljava/util/stream/Stream;
-
getType
- Specified by:
getType
in classPlacementModifier
- Mappings:
Namespace Name Mixin selector named getType
Lnet/minecraft/world/gen/placementmodifier/PlacementModifier;getType()Lnet/minecraft/world/gen/placementmodifier/PlacementModifierType;
intermediary method_39615
Lnet/minecraft/class_6797;method_39615()Lnet/minecraft/class_6798;
official b
Leiy;b()Leiz;
-