Class ChapterQuestBook

Create a Quest Book with Chapters.

Constructors

Properties

Methods

Constructors

  • Parameters

    • id: string

      The unique id of the QuestBook.

    • title: string | RawMessage

      Title of the QuestBook.

    • body: string | RawMessage

      Body of the Questbook.

    • chapters: QuestChapter[]

      Chapters of the Questbook.

    • OptionaliconPath: string

      The icon of the book. It should be the path from the root of the resource pack.

      texture/gui/example_pic
      

    Returns ChapterQuestBook

Properties

body: string | RawMessage

Body of the Questbook.

chapters: QuestChapter[]

Chapters of the Questbook.

iconPath?: string

The icon of the book. It should be the path from the root of the resource pack.

texture/gui/example_pic
id: string

The unique id of the QuestBook.

title: string | RawMessage

Title of the QuestBook.

Methods

  • Display the book to the player.

    Parameters

    • player: Player

    Returns void

  • Registry the prop.

    Returns void

    Use Register.questRegistry() to registry the prop