SerenityJS
    Preparing search index...
    Index

    Constructors

    Properties

    permutations: Map<number, BlockPermutation> = 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> = BlockType.types

    The registered block types for the palette.

    Methods

    • Gets the block types the client only knows from the definitions the server sends: custom block types, and the vanilla block types defined by data, like the wool and concrete stairs. Other vanilla block types are known to the client, and a definition sent for one replaces what it knows, like its sounds.

      Returns BlockType[]

      The block types defined by data.

    • 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.