Class PlacementModifier
java.lang.Object
net.minecraft.world.gen.placementmodifier.PlacementModifier
- Direct Known Subclasses:
AbstractConditionalPlacementModifier
,AbstractCountPlacementModifier
,CarvingMaskPlacementModifier
,CountMultilayerPlacementModifier
,EnvironmentScanPlacementModifier
,HeightmapPlacementModifier
,HeightRangePlacementModifier
,RandomOffsetPlacementModifier
,SquarePlacementModifier
A placement modifier is a one-to-many position transformation, which
takes a position with some context and returns zero or more positions.
It's used to determine where to generate configured features.
- See Also:
-
-
invalid @see
net.minecraft.world.gen.feature.ConfiguredFeature#withPlacement
-
- Mappings:
Namespace Name official deg
intermediary net/minecraft/class_6797
named net/minecraft/world/gen/placementmodifier/PlacementModifier
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetPositions
(FeaturePlacementContext context, Random random, BlockPos pos) Applies this placement modifier to the given position.abstract PlacementModifierType<?>
getType()
-
Field Details
-
CODEC
- Mappings:
Namespace Name Mixin selector official b
Ldeg;b:Lcom/mojang/serialization/Codec;
intermediary field_35736
Lnet/minecraft/class_6797;field_35736:Lcom/mojang/serialization/Codec;
named CODEC
Lnet/minecraft/world/gen/placementmodifier/PlacementModifier;CODEC:Lcom/mojang/serialization/Codec;
-
-
Constructor Details
-
PlacementModifier
public PlacementModifier()
-
-
Method Details
-
getPositions
public abstract Stream<BlockPos> getPositions(FeaturePlacementContext context, Random random, BlockPos pos) Applies this placement modifier to the given position.- Mappings:
Namespace Name Mixin selector official a_
Ldeg;a_(Ldee;Ljava/util/Random;Lgj;)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/placementmodifier/PlacementModifier;getPositions(Lnet/minecraft/world/gen/feature/FeaturePlacementContext;Ljava/util/Random;Lnet/minecraft/util/math/BlockPos;)Ljava/util/stream/Stream;
-
getType
- Mappings:
Namespace Name Mixin selector official b
Ldeg;b()Ldeh;
intermediary method_39615
Lnet/minecraft/class_6797;method_39615()Lnet/minecraft/class_6798;
named getType
Lnet/minecraft/world/gen/placementmodifier/PlacementModifier;getType()Lnet/minecraft/world/gen/placementmodifier/PlacementModifierType;
-