Class: BlockStates
blockBeta
枚举所有 BlockStateType。
Enumerates all BlockStateTypes.
Methods
get()
staticget(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()
staticgetAll():BlockStateType[]
Beta
Returns
Remarks
检索所有可用方块状态的集合。
Retrieves a set of all available block states.
