Script API - v1.26.30.25
    Preparing search index...

    Enumerates all BlockStateTypes.

    export class BlockStates {
    private constructor();
    static get(stateName: string): BlockStateType | undefined;
    static getAll(): BlockStateType[];
    }
    Index

    Constructors

    Methods

    Constructors

    Methods

    • Parameters

      • stateName: string

      Returns BlockStateType | undefined

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

      Retrieves a specific block state instance.

      This function can't be called in early-execution mode.