API reference Obsidian.API.World.Features.Trees
FoliageAttachment record struct
Where a foliage placer should place leaves, like vanilla's FoliagePlacer.FoliageAttachment.
public readonly record struct FoliageAttachment : IEquatable<FoliageAttachment>
In Obsidian.API.
Constructors
FoliageAttachment(Vector, int, bool)
public FoliageAttachment(Vector Position, int RadiusOffset, bool DoubleTrunk);Where a foliage placer should place leaves, like vanilla's FoliagePlacer.FoliageAttachment.
Parameters
Position- Top of the trunk (or branch) the foliage grows around.
RadiusOffset- Added to the sampled foliage radius.
DoubleTrunk- Whether the trunk is 2x2, which widens rows by one block on the positive axes.
Properties
DoubleTrunk
public bool DoubleTrunk { get; init; }Whether the trunk is 2x2, which widens rows by one block on the positive axes.
Position
public Vector Position { get; init; }Top of the trunk (or branch) the foliage grows around.
RadiusOffset
public int RadiusOffset { get; init; }Added to the sampled foliage radius.