Difference between revisions of "Pre-release protocol"

From wiki.vg
Jump to navigation Jump to search
(23w40a)
(→‎Data types: Added change to Chat type)
Line 9: Line 9:
 
=== Data types ===
 
=== Data types ===
  
No changes so far.
+
==== Chat ====
 +
 
 +
The [[Chat]] type is now serialized as a [[NBT|NBT Tag]] instead of a JSON String.
 +
 
 +
{| class="wikitable"
 +
|-
 +
! Name
 +
! Size (bytes)
 +
! Encodes
 +
! Notes
 +
|-
 +
! id=Definitions:chat | [[#Definitions:chat|Chat]]
 +
| {{change|≥ 1 <br />≤ (262144&times;4) + 3|Varies}}
 +
| See [[Chat]]
 +
| {{change|Encoded as a String with max length of 262144.|Encoded as a [[NBT|NBT Tag]], with varying type depending on the case:
 +
* As a [[NBT#Specification|String Tag]]: For raw components that contain only text and no other fields (styling, events etc.).
 +
* As a [[NBT#Specification|Compound Tag]]: Every other case.}}
 +
|}
  
 
=== Packets ===
 
=== Packets ===

Revision as of 00:45, 5 October 2023

This page documents the changes from the last stable Minecraft release (currently 1.20.2, protocol 764) to the current pre-release (currently 23w40a, protocol Snapshot 154). Note that this page contains bleeding-edge information that may not be completely or correctly documented.

One who wishes to commandeer the merging of this into Protocol when an update is made must be sure to respect any changes that may have occurred to the respective packets there.

Contents

Data types

Chat

The Chat type is now serialized as a NBT Tag instead of a JSON String.

Name Size (bytes) Encodes Notes
Chat ≥ 1
≤ (262144×4) + 3
Varies
See Chat Encoded as a String with max length of 262144. Encoded as a NBT Tag, with varying type depending on the case:
  • As a String Tag: For raw components that contain only text and no other fields (styling, events etc.).
  • As a Compound Tag: Every other case.

Packets

No changes so far.

New/modified data types

No changes so far.

Entity Metadata

No changes so far.

Entity

No changes so far.

Block Actions

No changes so far.

Inventories

No changes so far.

Plugin Channels

No changes so far.

Status

Clientbound

No changes so far.

Serverbound

No changes so far.

Login

Clientbound

No changes so far.

Serverbound

No changes so far.

Configuration

Clientbound

No changes so far.

Serverbound

No changes so far.

Play

Clientbound

No changes so far.

Serverbound

No changes so far.