API reference Obsidian.API.World.Features.Trees
FeatureSize class
How much free space a tree needs around its trunk at each height, like vanilla's FeatureSize: a tree's minimum_size. Plugins add types with RegisterWorldgenType<FeatureSize, T>.
public abstract class FeatureSize
In Obsidian.API.
Constructors
protected FeatureSize();Properties
MinClippedHeight
public int MinClippedHeight { get; init; }If set, a tree whose free height is below its full height may still grow, clipped, as long as it has at least this much room. FeatureSize.NoMinClippedHeight when the JSON omits min_clipped_height.
public string Type { get; init; }Methods
GetSizeAtHeight(int, int)
public abstract int GetSizeAtHeight(int height, int y);Radius that must be free at y blocks above the trunk base of a tree of height.
Fields
NoMinClippedHeight
public const int NoMinClippedHeight = -1;Marks FeatureSize.MinClippedHeight as absent (vanilla's empty OptionalInt).