SerenityJS
    Preparing search index...
    Index

    Constructors

    Properties

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

    The creative content for the palette.

    recipes: Map<string, Recipe> = Recipe.recipes

    The registered recipes 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

    • Get a recipe by its network ID.

      Parameters

      • networkId: number

        The network ID of the recipe to get.

      Returns null | Recipe

      The recipe with the specified network ID, or null if not found.

    • 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