Skip to content

API reference Obsidian.API.World.Generator

SimpleBlockStateExtensions class

Extension methods for converting SimpleBlockState to IBlock. Since ChunkBuilder is in the API project and can't access BlocksRegistry directly, we use a delegate pattern to provide the conversion logic.

public static class SimpleBlockStateExtensions

In Obsidian.API.

Methods

ToBlock(SimpleBlockState)

public static IBlock ToBlock(this SimpleBlockState state);

Converts a SimpleBlockState to an IBlock instance.

On this page