Package net.minecraft.world.gen.feature
Class PlacedFeature
java.lang.Object
net.minecraft.world.gen.feature.PlacedFeature
- Mappings:
Namespace Name official ddw
intermediary net/minecraft/class_6796
named net/minecraft/world/gen/feature/PlacedFeature
-
Field Summary
Modifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<PlacedFeature>
private final Supplier<ConfiguredFeature<?,
?>> static final com.mojang.serialization.Codec<List<Supplier<PlacedFeature>>>
private final List<PlacementModifier>
static final com.mojang.serialization.Codec<Supplier<PlacedFeature>>
-
Constructor Summary
ConstructorDescriptionPlacedFeature
(Supplier<ConfiguredFeature<?, ?>> feature, List<PlacementModifier> placementModifiers) -
Method Summary
Modifier and TypeMethodDescriptionprivate boolean
generate
(DecoratorContext context, Random random, BlockPos pos) boolean
generate
(StructureWorldAccess world, ChunkGenerator generator, Random random, BlockPos pos) Generates a configured feature at the positions obtained by applying placement modifiers to the given position.boolean
generateUnregistered
(StructureWorldAccess world, ChunkGenerator generator, Random random, BlockPos pos) Stream<ConfiguredFeature<?,
?>> toString()
-
Field Details
-
CODEC
- Mappings:
Namespace Name Mixin selector official a
Lddw;a:Lcom/mojang/serialization/Codec;
intermediary field_35729
Lnet/minecraft/class_6796;field_35729:Lcom/mojang/serialization/Codec;
named CODEC
Lnet/minecraft/world/gen/feature/PlacedFeature;CODEC:Lcom/mojang/serialization/Codec;
-
REGISTRY_CODEC
- Mappings:
Namespace Name Mixin selector official b
Lddw;b:Lcom/mojang/serialization/Codec;
intermediary field_35730
Lnet/minecraft/class_6796;field_35730:Lcom/mojang/serialization/Codec;
named REGISTRY_CODEC
Lnet/minecraft/world/gen/feature/PlacedFeature;REGISTRY_CODEC:Lcom/mojang/serialization/Codec;
-
LIST_CODEC
- Mappings:
Namespace Name Mixin selector official c
Lddw;c:Lcom/mojang/serialization/Codec;
intermediary field_35731
Lnet/minecraft/class_6796;field_35731:Lcom/mojang/serialization/Codec;
named LIST_CODEC
Lnet/minecraft/world/gen/feature/PlacedFeature;LIST_CODEC:Lcom/mojang/serialization/Codec;
-
feature
- Mappings:
Namespace Name Mixin selector official d
Lddw;d:Ljava/util/function/Supplier;
intermediary field_35732
Lnet/minecraft/class_6796;field_35732:Ljava/util/function/Supplier;
named feature
Lnet/minecraft/world/gen/feature/PlacedFeature;feature:Ljava/util/function/Supplier;
-
placementModifiers
- Mappings:
Namespace Name Mixin selector official e
Lddw;e:Ljava/util/List;
intermediary field_35733
Lnet/minecraft/class_6796;field_35733:Ljava/util/List;
named placementModifiers
Lnet/minecraft/world/gen/feature/PlacedFeature;placementModifiers:Ljava/util/List;
-
-
Constructor Details
-
PlacedFeature
public PlacedFeature(Supplier<ConfiguredFeature<?, ?>> feature, List<PlacementModifier> placementModifiers) - Mappings:
Namespace Name Mixin selector official <init>
Lddw;<init>(Ljava/util/function/Supplier;Ljava/util/List;)V
intermediary <init>
Lnet/minecraft/class_6796;<init>(Ljava/util/function/Supplier;Ljava/util/List;)V
named <init>
Lnet/minecraft/world/gen/feature/PlacedFeature;<init>(Ljava/util/function/Supplier;Ljava/util/List;)V
-
-
Method Details
-
generateUnregistered
public boolean generateUnregistered(StructureWorldAccess world, ChunkGenerator generator, Random random, BlockPos pos) - Mappings:
Namespace Name Mixin selector official a
Lddw;a(Lcav;Lcpz;Ljava/util/Random;Lgh;)Z
intermediary method_39644
Lnet/minecraft/class_6796;method_39644(Lnet/minecraft/class_5281;Lnet/minecraft/class_2794;Ljava/util/Random;Lnet/minecraft/class_2338;)Z
named generateUnregistered
Lnet/minecraft/world/gen/feature/PlacedFeature;generateUnregistered(Lnet/minecraft/world/StructureWorldAccess;Lnet/minecraft/world/gen/chunk/ChunkGenerator;Ljava/util/Random;Lnet/minecraft/util/math/BlockPos;)Z
-
generate
public boolean generate(StructureWorldAccess world, ChunkGenerator generator, Random random, BlockPos pos) Generates a configured feature at the positions obtained by applying placement modifiers to the given position.To calculate positions, it first creates a singleton stream of the given position, then it applies placement modifiers with flatMap in order they appear in the list.
- Mappings:
Namespace Name Mixin selector official b
Lddw;b(Lcav;Lcpz;Ljava/util/Random;Lgh;)Z
intermediary method_39650
Lnet/minecraft/class_6796;method_39650(Lnet/minecraft/class_5281;Lnet/minecraft/class_2794;Ljava/util/Random;Lnet/minecraft/class_2338;)Z
named generate
Lnet/minecraft/world/gen/feature/PlacedFeature;generate(Lnet/minecraft/world/StructureWorldAccess;Lnet/minecraft/world/gen/chunk/ChunkGenerator;Ljava/util/Random;Lnet/minecraft/util/math/BlockPos;)Z
-
generate
- Mappings:
Namespace Name Mixin selector official a
Lddw;a(Lddx;Ljava/util/Random;Lgh;)Z
intermediary method_39648
Lnet/minecraft/class_6796;method_39648(Lnet/minecraft/class_5444;Ljava/util/Random;Lnet/minecraft/class_2338;)Z
named generate
Lnet/minecraft/world/gen/feature/PlacedFeature;generate(Lnet/minecraft/world/gen/decorator/DecoratorContext;Ljava/util/Random;Lnet/minecraft/util/math/BlockPos;)Z
-
getDecoratedFeatures
- Mappings:
Namespace Name Mixin selector official a
Lddw;a()Ljava/util/stream/Stream;
intermediary method_39643
Lnet/minecraft/class_6796;method_39643()Ljava/util/stream/Stream;
named getDecoratedFeatures
Lnet/minecraft/world/gen/feature/PlacedFeature;getDecoratedFeatures()Ljava/util/stream/Stream;
-
getPlacementModifiers
- Mappings:
Namespace Name Mixin selector official b
Lddw;b()Ljava/util/List;
intermediary method_39825
Lnet/minecraft/class_6796;method_39825()Ljava/util/List;
named getPlacementModifiers
Lnet/minecraft/world/gen/feature/PlacedFeature;getPlacementModifiers()Ljava/util/List;
-
toString
-