SerenityJS
    Preparing search index...

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    block: Block

    The block that this trait is attached to.

    components: string[] = ...

    The block component identifiers that this trait is compatible with. If empty, the trait will not be initialized by any component.

    dimension: Dimension

    The dimension that the block is in.

    identifier: string = ...

    The identifier of the trait.

    state: null | string = ...

    The block state key that this trait is compatible with. If null, the trait will not be initialized by any block state.

    components: string[] = []

    The block component identifiers that this trait is compatible with by default. If empty, the trait will not be initialized by any component.

    identifier: string

    The identifier of the trait.

    state: null | string = null

    The block state key that this trait is compatible with by default. If null, the trait will not be initialized by any block state.

    types: BlockIdentifier[] = []

    The block type identifiers that this trait is compatible with by default.

    Methods

    • Called when a player pick blocks the block.

      Parameters

      • player: Player

        The player that picked the block.

      • withData: boolean

        Whether the player picked the block with a data request.

      Returns void