Skip to content

API reference Obsidian.API.Registry.Codecs.Biomes

BiomeCodec record

public sealed record BiomeCodec : ICodec, IEquatable<BiomeCodec>

In Obsidian.API.

Constructors

public BiomeCodec();

Properties

Element

public required BiomeElement Element { get; set; }

The entry's data. A plugin's entry gets a new element when its plugin reloads, and keeps its instance and id.

public required int Id { get; init; }public required string Name { get; init; }

Methods

WriteElement(INbtWriter)

public void WriteElement(INbtWriter writer);

Writes the climate and effects as vanilla's Biome.NETWORK_CODEC does. Clients get vanilla's biomes by name, and plugins' with the data their files decode to, attributes included.

On this page