Skip to content

API reference Obsidian.API.World.Features

PlacementContext class

State shared by the placement modifiers of one placed feature.

public sealed class PlacementContext

In Obsidian.API.

Constructors

public PlacementContext();

Properties

BiomeHasFeature

public Func<BiomeCodec, PlacedFeature, bool> BiomeHasFeature { get; init; }

Whether a biome lists a placed feature in its decoration steps; used by biome filters.

public required WorldGenerationContext Generation { get; init; }public required IWorldGenLevel Level { get; init; }

TopFeature

public PlacedFeature TopFeature { get; init; }

The placed feature being decorated, used by biome filters; null when placed without a biome check.

On this page