Skip to content

API reference Obsidian.API.Blocks

WeightedFeature record

A configured feature, by identifier, and its weight in a list picked from by weight.

public sealed record WeightedFeature : IEquatable<WeightedFeature>

In Obsidian.API.

Constructors

WeightedFeature(string, int)

public WeightedFeature(string Feature, int Weight);

A configured feature, by identifier, and its weight in a list picked from by weight.

Parameters

Feature
The configured feature's identifier, like minecraft:oak.
Weight
Its weight, at least 1.

Properties

Feature

public string Feature { get; init; }

The configured feature's identifier, like minecraft:oak.

Weight

public int Weight { get; init; }

Its weight, at least 1.

On this page