rednode API - v0.80.1
    Preparing search index...

    Interface InkNode<P>

    One widget of a tree.

    interface InkNode<P extends InkProps = InkProps> {
        key: string;
        props: Readonly<P>;
        tag: string;
        set(props: Partial<P>): void;
    }

    Type Parameters

    Index
    key: string

    Unique within the mod.

    props: Readonly<P>

    Its properties now.

    tag: string

    The tag, such as "text", or an ink class for ink.widget.

    • Changes some properties. Changes made in the same tick go to the game together.

      Parameters

      • props: Partial<P>

      Returns void

      const where = ink.text("");
      where.set({ text: "Watson", color: "cyan" });