Blockbench Reference Docs
    Preparing search index...
    Index

    Constructors

    Properties

    id: string

    The ID of the context.

    inheritedContext: Context

    The inherited context.

    namespaces: Map<string, Namespace>

    The namespaces in the context.

    rootTokens: Map<string, RootToken>

    The root tokens in the context.

    all: Context[]

    All contexts.

    Methods

    • Returns any namespaces in this context who's ID starts with incomplete.

      Parameters

      • incomplete: string
      • Optionalrecursive: boolean

      Returns Namespace[]

    • Returns any root tokens in this context who's ID starts with incomplete.

      Parameters

      • incomplete: string
      • Optionalrecursive: boolean

      Returns RootToken[]

    • Checks if the context has a namespace.

      Parameters

      • namespaceID: string
      • Optionalrecursive: boolean

      Returns boolean

    • Removes a namespace from the context.

      Parameters

      • namespaceID: string

      Returns boolean

    • Removes a root token from the context.

      Parameters

      • tokenID: string

      Returns boolean