SerenityJS
    Preparing search index...
    Index

    Constructors

    Properties

    permutations: Map<number, BlockPermutation<keyof BlockState>> = BlockPermutation.permutations

    The registered block permutations for the palette.

    traits: Map<string, typeof BlockTrait> = ...

    The registered block traits for the palette.

    types: Map<string, BlockType<keyof BlockState>> = BlockType.types

    The registered block types for the palette.

    Methods

    • Get a trait from the palette.

      Parameters

      • identifier: string

        The identifier of the trait.

      • Optionalstate: null | string

        The state of the trait.

      Returns null | typeof BlockTrait

      The trait from the palette.