SerenityJS
    Preparing search index...
    Index

    Constructors

    Properties

    creativeGroups: Map<number, CreateContentGroup> = CreateContentGroup.groups

    The creative content for the palette.

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

    The registered item traits for the palette.

    types: Map<string, ItemType> = ItemType.types

    The registered item types for the palette.

    Methods

    • Register an item for a creative content group.

      Parameters

      • group: CreativeItemGroup

        The creative content group.

      • type: ItemType

        The item type to register.

      Returns void

      The creative content group.

    • Unregister a creative group from the palette.

      Parameters

      • value: string | number

        The index or identifier of the creative group to unregister.

      Returns void