-
-
Notifications
You must be signed in to change notification settings - Fork 209
feat(paper): add dialog documentation about tags and nbt payloads #702
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
built with Refined Cloudflare Pages Action⚡ Cloudflare Pages Deployment
|
zlataovce
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good apart from a couple of nitpicks
| } | ||
| ``` | ||
|
|
||
| ### Pause Screen Additions and Quick Actions |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
iirc we intentionally not documented that because the tag lifecycle event was not documented in the registries page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
iirc we intentionally not documented that because the tag lifecycle event was not documented in the registries page.
What would the recommend alternative be?
This pull request adds new documentation explaining how to use dialog tags for pause screen and quick actions integration, and introduces a new section on using NBT payloads with dialogs in the API. The changes provide detailed code examples and best practices for both registering dialogs with special tags and handling custom NBT data using the
adventure-nbtlibrary.Dialog Tag Registration Enhancements:
PAUSE_SCREEN_ADDITIONSandQUICK_ACTIONSto integrate custom dialogs into the game's pause screen and quick actions menu, including a full code example for registering these tags in a plugin bootstrapper.NBT Payload Support for Dialogs:
PlayerCustomClickEvent.adventure-nbtlibrary, including exception handling and dependency notes.BinaryTagHoldertoCompoundBinaryTagand handling potential nulls and IO exceptions.