Skip to content

Add shared Nethernet advertisement schemas - #1325

Closed
extremeheat wants to merge 1 commit into
masterfrom
feat/nethernet-advertisement-schema
Closed

extremeheat wants to merge 1 commit into
masterfrom
feat/nethernet-advertisement-schema

Conversation

@extremeheat

Copy link
Copy Markdown
Member

Move the Nethernet advertisement ProtoDef definitions from bedrock-protocol into shared Minecraft data. The file contains the v4/v7 layouts and the optional v4 trailer. Discovery layouts are independent of the advertised game version, so this belongs in data/bedrock/common and can be decoded before a Minecraft version is known.

This is an unchanged extraction of src/nethernet/advertisement.json from PrismarineJS/bedrock-protocol. Bedrock will consume it through the minecraft-data npm package, allowing minecraft-bedrock-server to use Bedrock's shared discovery API instead of carrying duplicate schemas and transport code.

@extremeheat

Copy link
Copy Markdown
Member Author

Closing the schema extraction: the advertisement definitions will remain in bedrock-protocol. extremeheat/minecraft-bedrock-server#37 can use its shared discovery API directly, so this move is unnecessary.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant