API reference Obsidian.API.World.Features
PlacedFeature class
A configured feature plus the placement modifiers that decide where and how often it's placed, like vanilla's PlacedFeature.
public sealed class PlacedFeature : IFeature
In Obsidian.API.
Constructors
public PlacedFeature();Properties
public required ConfiguredFeatureBase Feature { get; init; }Identifier
public string Identifier { get; init; }Registry id (e.g. minecraft:trees_plains), or empty for placed features defined inline.
public ImmutableArray<PlacementModifierBase> Placement { get; init; }Methods
Place(IWorldGenLevel, WorldGenerationContext, IRandomSource, Vector)
public bool Place(IWorldGenLevel level, WorldGenerationContext generation, IRandomSource random, Vector origin);Runs the placement modifiers from origin and places the feature at every resulting position.
PlaceWithBiomeCheck(IWorldGenLevel, WorldGenerationContext, IRandomSource, Vector, Func<BiomeCodec, PlacedFeature, bool>)
public bool PlaceWithBiomeCheck(IWorldGenLevel level, WorldGenerationContext generation, IRandomSource random, Vector origin, Func<BiomeCodec, PlacedFeature, bool> biomeHasFeature);Like PlacedFeature.Place, but marks this feature as the top feature so minecraft:biome filters keep only positions whose biome lists it (biomeHasFeature).