Skip to content

API reference Obsidian.API.World.Features

VerticalAnchor record struct

A Y level that is absolute or relative to the bottom or top of the generated area.

public readonly record struct VerticalAnchor : IEquatable<VerticalAnchor>

In Obsidian.API.

Properties

public int? AboveBottom { get; }public int? Absolute { get; }public int? BelowTop { get; }public static VerticalAnchor Bottom { get; }public static VerticalAnchor Top { get; }

Methods

Resolve(WorldGenerationContext)

public int Resolve(WorldGenerationContext context);

Resolves the anchor to a block Y, like vanilla's VerticalAnchor.resolveY.

public static VerticalAnchor WithAboveBottom(int aboveBottom);public static VerticalAnchor WithAbsolute(int absolute);public static VerticalAnchor WithBelowTop(int belowTop);

On this page