Skip to content

API reference Obsidian.API

IBlock interface

public interface IBlock

In Obsidian.API.

Properties

int BaseId { get; }int DefaultId { get; }bool IsAir { get; }bool IsLiquid { get; }bool IsTransparent { get; }int RegistryId { get; }IBlockState State { get; }string UnlocalizedName { get; }

Methods

Is(int)

bool Is(int blockId);

Whether the block is the one with the given id, like BlockIds.Stone.

On this page