For AI agents: the complete documentation index is available at /llms.txt, the full documentation bundle is available at /llms-full.txt, and this page is available as Markdown at /server/classes/BlockStates.md.

Class: BlockStates

block

Beta

枚举所有 BlockStateType

Enumerates all BlockStateTypes.

Methods

get()

static get(stateName): BlockStateType | undefined

Beta

Parameters

stateName

string

Returns

BlockStateType | undefined

如果找到则返回 Block 状态实例。如果未找到方块状态实例,则返回 undefined

Returns the Block state instance if it is found. If the block state instance is not found returns undefined.

Remarks

检索特定的方块状态实例。

Retrieves a specific block state instance.


getAll()

static getAll(): BlockStateType[]

Beta

Returns

BlockStateType[]

Remarks

检索所有可用方块状态的集合。

Retrieves a set of all available block states.

同领域相关