Skip to content
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

Final protocol updates for 1.16 #95

Merged
merged 4 commits into from
Jun 5, 2021

Conversation

extremeheat
Copy link
Member

Some final protocol updates for 1.16, preparing for 1.17. There are some breaking changes to field naming to align closer with the official field names and ones used in other implementations.

  • Login packet now uses "encapsulated" length-prefix type, so length no longer needs to be manually calculated. Change has been backported to 1.16.* for compat. Handled internally, so not API breaking.
  • Add missing structure block packet schemas

Breaking:

  • resource_pack_data_info, resource_pack_chunk_data, packet_resource_pack_chunk_request - package_id => pack_id, compressed_package_size => size
  • level_sound_event - block_id => extra_data
  • Rarely used: packet_player_enchant_options, packet_lab_table, packet_photo_transfer, packet_npc_request, packet_set_last_hurt_by, packet_show_store_offer

* Login packet uses new Encapsulated type
* Add missing packet schemas
* Add more docs
Breaking: revises some field names
# Offset is the offset position that was set in the structure block. The area exported is offset by this
# position.
# **TODO**: This will be renamed to offset soon
structure_offset: BlockCoordinates
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@extremeheat extremeheat marked this pull request as draft June 3, 2021 21:29
@extremeheat extremeheat requested a review from rom1504 June 4, 2021 09:28
@extremeheat extremeheat marked this pull request as ready for review June 5, 2021 00:00
@extremeheat extremeheat merged commit 9113b09 into PrismarineJS:master Jun 5, 2021
@extremeheat extremeheat mentioned this pull request Jun 5, 2021
@extremeheat extremeheat deleted the protofix3 branch February 21, 2022 05:29
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