Package net.minecraft.world.gen.feature
Class PlacedFeature
java.lang.Object
net.minecraft.world.gen.feature.PlacedFeature
- Mappings:
Namespace Name official ddwintermediary net/minecraft/class_6796named net/minecraft/world/gen/feature/PlacedFeature
-
Field Summary
FieldsModifier 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
ConstructorsConstructorDescriptionPlacedFeature(Supplier<ConfiguredFeature<?, ?>> feature, List<PlacementModifier> placementModifiers) -
Method Summary
Modifier and TypeMethodDescriptionprivate booleangenerate(DecoratorContext context, Random random, BlockPos pos) booleangenerate(StructureWorldAccess world, ChunkGenerator generator, Random random, BlockPos pos) Generates a configured feature at the positions obtained by applying placement modifiers to the given position.booleangenerateUnregistered(StructureWorldAccess world, ChunkGenerator generator, Random random, BlockPos pos) Stream<ConfiguredFeature<?,?>> toString()
-
Field Details
-
CODEC
- Mappings:
Namespace Name Mixin selector official aLddw;a:Lcom/mojang/serialization/Codec;intermediary field_35729Lnet/minecraft/class_6796;field_35729:Lcom/mojang/serialization/Codec;named CODECLnet/minecraft/world/gen/feature/PlacedFeature;CODEC:Lcom/mojang/serialization/Codec;
-
REGISTRY_CODEC
- Mappings:
Namespace Name Mixin selector official bLddw;b:Lcom/mojang/serialization/Codec;intermediary field_35730Lnet/minecraft/class_6796;field_35730:Lcom/mojang/serialization/Codec;named REGISTRY_CODECLnet/minecraft/world/gen/feature/PlacedFeature;REGISTRY_CODEC:Lcom/mojang/serialization/Codec;
-
LIST_CODEC
- Mappings:
Namespace Name Mixin selector official cLddw;c:Lcom/mojang/serialization/Codec;intermediary field_35731Lnet/minecraft/class_6796;field_35731:Lcom/mojang/serialization/Codec;named LIST_CODECLnet/minecraft/world/gen/feature/PlacedFeature;LIST_CODEC:Lcom/mojang/serialization/Codec;
-
feature
- Mappings:
Namespace Name Mixin selector official dLddw;d:Ljava/util/function/Supplier;intermediary field_35732Lnet/minecraft/class_6796;field_35732:Ljava/util/function/Supplier;named featureLnet/minecraft/world/gen/feature/PlacedFeature;feature:Ljava/util/function/Supplier;
-
placementModifiers
- Mappings:
Namespace Name Mixin selector official eLddw;e:Ljava/util/List;intermediary field_35733Lnet/minecraft/class_6796;field_35733:Ljava/util/List;named placementModifiersLnet/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;)Vintermediary <init>Lnet/minecraft/class_6796;<init>(Ljava/util/function/Supplier;Ljava/util/List;)Vnamed <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 aLddw;a(Lcav;Lcpz;Ljava/util/Random;Lgh;)Zintermediary method_39644Lnet/minecraft/class_6796;method_39644(Lnet/minecraft/class_5281;Lnet/minecraft/class_2794;Ljava/util/Random;Lnet/minecraft/class_2338;)Znamed generateUnregisteredLnet/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 bLddw;b(Lcav;Lcpz;Ljava/util/Random;Lgh;)Zintermediary method_39650Lnet/minecraft/class_6796;method_39650(Lnet/minecraft/class_5281;Lnet/minecraft/class_2794;Ljava/util/Random;Lnet/minecraft/class_2338;)Znamed generateLnet/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 aLddw;a(Lddx;Ljava/util/Random;Lgh;)Zintermediary method_39648Lnet/minecraft/class_6796;method_39648(Lnet/minecraft/class_5444;Ljava/util/Random;Lnet/minecraft/class_2338;)Znamed generateLnet/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 aLddw;a()Ljava/util/stream/Stream;intermediary method_39643Lnet/minecraft/class_6796;method_39643()Ljava/util/stream/Stream;named getDecoratedFeaturesLnet/minecraft/world/gen/feature/PlacedFeature;getDecoratedFeatures()Ljava/util/stream/Stream;
-
getPlacementModifiers
- Mappings:
Namespace Name Mixin selector official bLddw;b()Ljava/util/List;intermediary method_39825Lnet/minecraft/class_6796;method_39825()Ljava/util/List;named getPlacementModifiersLnet/minecraft/world/gen/feature/PlacedFeature;getPlacementModifiers()Ljava/util/List;
-
toString
-