// generated by diplomat-tool import type { NucleationError } from "./NucleationError.mjs" import type { pointer, codepoint } from "./diplomat-runtime.d.ts"; /** * A block state: a block name plus its properties. Port of the old * `BlockStateWrapper` / `blockstate_*` fns. */ export class BlockState { /** @internal */ get ffiValue(): pointer; /** @internal */ constructor(); /** * Create a block state with the given name and no properties. */ static create(name: string): BlockState; /** * A copy of this block state with `key=value` set; the original is * unchanged. */ withProperty(key: string, value: string): BlockState; /** * The block name (e.g. `minecraft:stone`). */ name(): string; /** * The properties as a JSON object of string→string (the old * `CPropertyArray`). */ propertiesJson(): string; }