-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #12 from Mojang/r/21_u2
Protocol for r/21_u2 NetworkProtocolVersion 712
- Loading branch information
Showing
371 changed files
with
10,665 additions
and
9,182 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
# Minecraft Network Protocol Docs 07/16/2024 | ||
For r21u2, Network Protocol Version 712 | ||
|
||
|
||
## New Packets | ||
|
||
CurrentStructureFeaturePacket: | ||
* Added mCurrentStructureFeature (string) | ||
ServerboundDiagnosticsPacket: | ||
* Added mTelemetry.mAvgFps (float) | ||
* Added mTelemetry.mAvgServerSimTickTimeMS (float) | ||
* Added mTelemetry.mAvgClientSimTickTimeMS (float) | ||
* Added mTelemetry.mAvgBeginFrameTimeMS (float) | ||
* Added mTelemetry.mAvgInputTimeMS (float) | ||
* Added mTelemetry.mAvgRenderTimeMS (float) | ||
* Added mTelemetry.mAvgEndFrameTimeMS (float) | ||
* Added mTelemetry.mAvgRemainderTimePercent (float) | ||
* Added mTelemetry.mAvgUnaccountedTimePercent (float) | ||
|
||
|
||
## Packet Changes | ||
|
||
InventoryContentPacket: | ||
* Added mDynamicContainerId (uint32_t) | ||
InventorySlotPacket: | ||
* Added mDynamicContainerId (uint32_t) | ||
ResourcePacksInfoPacket: | ||
* Added pack.mIsAddonPack (bool) under mData.mBehaviorPacks | ||
* Added pack.mIsAddonPack (bool) under mData.mResourcePacks | ||
|
||
|
||
## Additional Types Added | ||
|
||
FullContainerName: | ||
* Added containerName.mName (enum ContainerEnumName) | ||
* Added containerName.mDynamicId.mData (uint32_t) | ||
TargetInstruction: | ||
* Added mTargetCenterOffset (brstd::optional<Vec3>) | ||
* Added mTargetActorId (int64_t) | ||
|
||
|
||
## Additional Types Changed | ||
|
||
CameraInstruction: | ||
* Added mTarget (brstd::optional<TargetInstruction>) | ||
* Added mRemoveTarget (brstd::optional<bool>) | ||
ItemStackRequestSlotInfo: | ||
* Removed mOpenContainerNetId | ||
* Added mFullContainerName (FullContainerName) | ||
ItemUseInventoryTransaction: | ||
* Added mTriggerType (enum ItemUseInventoryTransaction::TriggerType) [description below] | ||
|
||
|
||
## New Enums | ||
|
||
ItemUseInventoryTransaction::TriggerType: | ||
* Added Unknown(0) | ||
* Added PlayerInput(1) | ||
* Added SimulationTick(2) | ||
|
||
|
||
## Enum Changes | ||
|
||
ActorEvent: | ||
* Added DEPRECATED_UPDATE_STRUCTURE_FEATURE(66) | ||
* Removed UPDATE_STRUCTURE_FEATURE | ||
|
||
Connection::DisconnectFailReason: | ||
* Added SubClientLoginDisabled(116) | ||
|
||
ContainerEnumName: | ||
* Added DynamicContainer(63) | ||
|
||
MinecraftPacketIds: | ||
* Added CurrentStructureFeaturePacket(314) | ||
* Added ServerboundDiagnosticsPacket(315) | ||
* Displaced EndId |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
digraph "ClientboundCloseFormPacket" { | ||
rankdir = LR | ||
0 | ||
|
||
0 [label="ClientboundCloseFormPacket",comment="name: \"ClientboundCloseFormPacket\", typeName: \"\", id: 0, branchId: 310, recurseId: -1, attributes: 0, notes: \"\""]; | ||
{ rank = max} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,20 @@ | ||
digraph "CodeBuilderSourcePacket" { | ||
rankdir = LR | ||
0 | ||
0 -> 1 | ||
1 -> 2 | ||
0 -> 3 | ||
3 -> 4 | ||
0 -> 5 | ||
5 -> 6 | ||
|
||
0 [label="CodeBuilderSourcePacket",comment="name: \"CodeBuilderSourcePacket\", typeName: \"\", id: 0, branchId: 178, recurseId: -1, attributes: 0, notes: \"\""]; | ||
1 [label="Operation",comment="name: \"Operation\", typeName: \"\", id: 1, branchId: 0, recurseId: -1, attributes: 0, notes: \"\""]; | ||
2 [label="byte",comment="name: \"byte\", typeName: \"\", id: 2, branchId: 0, recurseId: -1, attributes: 512, notes: \"\""]; | ||
3 [label="Category",comment="name: \"Category\", typeName: \"\", id: 3, branchId: 0, recurseId: -1, attributes: 0, notes: \"\""]; | ||
4 [label="byte",comment="name: \"byte\", typeName: \"\", id: 4, branchId: 0, recurseId: -1, attributes: 512, notes: \"\""]; | ||
digraph "CodeBuilderSourcePacket" { | ||
rankdir = LR | ||
0 | ||
0 -> 1 | ||
1 -> 2 | ||
0 -> 3 | ||
3 -> 4 | ||
0 -> 5 | ||
5 -> 6 | ||
|
||
0 [label="CodeBuilderSourcePacket",comment="name: \"CodeBuilderSourcePacket\", typeName: \"\", id: 0, branchId: 178, recurseId: -1, attributes: 0, notes: \"\""]; | ||
1 [label="Operation",comment="name: \"Operation\", typeName: \"\", id: 1, branchId: 0, recurseId: -1, attributes: 0, notes: \"\""]; | ||
2 [label="byte",comment="name: \"byte\", typeName: \"\", id: 2, branchId: 0, recurseId: -1, attributes: 512, notes: \"\""]; | ||
3 [label="Category",comment="name: \"Category\", typeName: \"\", id: 3, branchId: 0, recurseId: -1, attributes: 0, notes: \"\""]; | ||
4 [label="byte",comment="name: \"byte\", typeName: \"\", id: 4, branchId: 0, recurseId: -1, attributes: 512, notes: \"\""]; | ||
5 [label="CodeStatus",comment="name: \"CodeStatus\", typeName: \"\", id: 5, branchId: 0, recurseId: -1, attributes: 0, notes: \"\""]; | ||
6 [label="byte",comment="name: \"byte\", typeName: \"\", id: 6, branchId: 0, recurseId: -1, attributes: 512, notes: \"\""]; | ||
{ rank = max;2;4;6} | ||
|
||
} | ||
{ rank = max;2;4;6} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,20 @@ | ||
digraph "ContainerClosePacket" { | ||
rankdir = LR | ||
0 | ||
0 -> 1 | ||
1 -> 2 | ||
0 -> 3 | ||
3 -> 4 | ||
digraph "ContainerClosePacket" { | ||
rankdir = LR | ||
0 | ||
0 -> 1 | ||
1 -> 2 | ||
0 -> 3 | ||
3 -> 4 | ||
0 -> 5 | ||
5 -> 6 | ||
|
||
0 [label="ContainerClosePacket",comment="name: \"ContainerClosePacket\", typeName: \"\", id: 0, branchId: 47, recurseId: -1, attributes: 0, notes: \"\""]; | ||
1 [label="Container ID",comment="name: \"Container ID\", typeName: \"\", id: 1, branchId: 0, recurseId: -1, attributes: 0, notes: \"\""]; | ||
2 [label="byte",comment="name: \"byte\", typeName: \"\", id: 2, branchId: 0, recurseId: -1, attributes: 512, notes: \"\""]; | ||
|
||
0 [label="ContainerClosePacket",comment="name: \"ContainerClosePacket\", typeName: \"\", id: 0, branchId: 47, recurseId: -1, attributes: 0, notes: \"\""]; | ||
1 [label="Container ID",comment="name: \"Container ID\", typeName: \"\", id: 1, branchId: 0, recurseId: -1, attributes: 0, notes: \"\""]; | ||
2 [label="byte",comment="name: \"byte\", typeName: \"\", id: 2, branchId: 0, recurseId: -1, attributes: 512, notes: \"\""]; | ||
3 [label="Container Type",comment="name: \"Container Type\", typeName: \"\", id: 3, branchId: 0, recurseId: -1, attributes: 0, notes: \"\""]; | ||
4 [label="byte",comment="name: \"byte\", typeName: \"\", id: 4, branchId: 0, recurseId: -1, attributes: 512, notes: \"\""]; | ||
5 [label="Server Initiated Close",comment="name: \"Server Initiated Close\", typeName: \"\", id: 5, branchId: 0, recurseId: -1, attributes: 0, notes: \"True if the server initiated the closing\""]; | ||
6 [label="bool",comment="name: \"bool\", typeName: \"\", id: 6, branchId: 0, recurseId: -1, attributes: 512, notes: \"\""]; | ||
{ rank = max;2;4;6} | ||
|
||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
digraph "CurrentStructureFeaturePacket" { | ||
rankdir = LR | ||
0 | ||
0 -> 1 | ||
1 -> 2 | ||
|
||
0 [label="CurrentStructureFeaturePacket",comment="name: \"CurrentStructureFeaturePacket\", typeName: \"\", id: 0, branchId: 314, recurseId: -1, attributes: 0, notes: \"\""]; | ||
1 [label="Current Structure Feature",comment="name: \"Current Structure Feature\", typeName: \"\", id: 1, branchId: 0, recurseId: -1, attributes: 0, notes: \"The identifier of the Structure Feature that the player is currently occupying. If the player is not occupying a structure then this value is an empty string.\""]; | ||
2 [label="string",comment="name: \"string\", typeName: \"\", id: 2, branchId: 0, recurseId: -1, attributes: 512, notes: \"\""]; | ||
{ rank = max;2} | ||
|
||
} |
Oops, something went wrong.