-
Notifications
You must be signed in to change notification settings - Fork 34
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 #13 from Mojang/r/21_u3
Protocol for r/21_u3 NetworkProtocolVersion 729
- Loading branch information
Showing
57 changed files
with
2,258 additions
and
1,789 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,177 @@ | ||
# Minecraft Network Protocol Docs 08/20/2024 | ||
For r21u3, Network Protocol Version 729 | ||
|
||
|
||
## New Packets | ||
|
||
CameraAimAssist: | ||
* Added mViewAngle (Vec2) | ||
* Added mDistance (float) | ||
* Added mTargetMode (enum CameraAimAssist::TargetMode) | ||
* Added mAction (enum CameraAimAssist::Action) | ||
|
||
ContainerRegistryCleanup: | ||
* Added mRemovedContainers (std::vector<FullContainerName>) | ||
|
||
|
||
## Packet Changes | ||
|
||
EmotePacket: | ||
* Added mEmoteTicks (uint32_t) | ||
|
||
InventoryContentPacket: | ||
* Added mFullContainerName (FullContainerName) | ||
* Added mDynamicContainerSize (uint32_t) | ||
* Removed mDynamicContainerId (uint32_t) | ||
|
||
InventorySlotPacket: | ||
* Added mFullContainerName (FullContainerName) | ||
* Added mDynamicContainerSize (uint32_t) | ||
* Removed mDynamicContainerId (uint32_t) | ||
|
||
ResourcePacksInfoPacket: | ||
* Removed mHasExceptions (bool) | ||
* Removed mForceServerPacksEnabled (bool) | ||
* Removed mBehaviorPacks (std::vector<PackInfoData>) | ||
|
||
TransferPacket: | ||
* Added mReloadWorld (bool) | ||
|
||
UpdateAttributesPacket: | ||
* Added mDefaultMinValue (float) | ||
* Added mDefaultMaxValue (float) | ||
|
||
|
||
## Additional Types Added | ||
|
||
std::optional<Vec3> | ||
|
||
|
||
## Additional Types Changed | ||
|
||
CameraPreset: | ||
* Added mCameraRotationSpeed (brstd::optional<float>) | ||
* Added mSnapToTarget (brstd::optional<bool>) | ||
* Added mEntityOffset (std::optional<Vec3>) | ||
|
||
FullContainerName: | ||
* Added mDynamicId (brstd::optional<uint32_t>) | ||
* Removed mDynamicId (DynamicId) | ||
|
||
|
||
## New Enums | ||
|
||
CameraAimAssistPacket::Action: | ||
* Added Set(0) | ||
* Added Clear(1) | ||
|
||
CameraAimAssistPacket::TargetMode: | ||
* Added Angle(0) | ||
* Added Distance(1) | ||
|
||
|
||
## Enum Changes | ||
|
||
ActorDamageCause: | ||
* Added MaceSmash(34) | ||
* Displaced All | ||
|
||
Connection::DisconnectFailReason: | ||
* Added DeepLinkTryingToOpenDemoWorldWhileSignedIn(117) | ||
|
||
ContainerID: | ||
* Added CONTAINER_ID_REGISTRY(125) | ||
* Added CONTAINER_ID_REGISTRY_INVENTORY(126) | ||
|
||
Enchant::Type: | ||
* Enum names have changed, but not necessarily their behavior. | ||
* Added Protection(0) | ||
* Added FireProtection(1) | ||
* Added FeatherFalling(2) | ||
* Added BlastProtection(3) | ||
* Added ProjectileProtection(4) | ||
* Added Thorns(5) | ||
* Added Respiration(6) | ||
* Added DepthStrider(7) | ||
* Added AquaAffinity(8) | ||
* Added Sharpness(9) | ||
* Added Smite(10) | ||
* Added BaneOfArthropods(11) | ||
* Added Knockback(12) | ||
* Added FireAspect(13) | ||
* Added Looting(14) | ||
* Added Efficiency(15) | ||
* Added SilkTouch(16) | ||
* Added Unbreaking(17) | ||
* Added Fortune(18) | ||
* Added Power(19) | ||
* Added Punch(20) | ||
* Added Flame(21) | ||
* Added Infinity(22) | ||
* Added LuckOfTheSea(23) | ||
* Added Lure(24) | ||
* Added CurseOfBinding(27) | ||
* Added CurseOfVanishing(28) | ||
* Added Impaling(29) | ||
* Added Riptide(30) | ||
* Added Loyalty(31) | ||
* Added Channeling(32) | ||
* Added Multishot(33) | ||
* Added Piercing(34) | ||
* Added QuickCharge(35) | ||
* Removed ArmorAll | ||
* Removed ArmorFire | ||
* Removed ArmorFall | ||
* Removed ArmorExplosive | ||
* Removed ArmorProjectile | ||
* Removed ArmorThorns | ||
* Removed WaterBreath | ||
* Removed WaterSpeed | ||
* Removed WaterAffinity | ||
* Removed WeaponDamage | ||
* Removed WeaponUndead | ||
* Removed WeaponArthropod | ||
* Removed WeaponKnockback | ||
* Removed WeaponFire | ||
* Removed WeaponLoot | ||
* Removed MiningEfficiency | ||
* Removed MiningSilkTouch | ||
* Removed MiningDurability | ||
* Removed MiningLoot | ||
* Removed BowDamage | ||
* Removed BowKnockback | ||
* Removed BowFire | ||
* Removed BowInfinity | ||
* Removed FishingLoot | ||
* Removed FishingLure | ||
* Removed CurseBinding | ||
* Removed CurseVanishing | ||
* Removed TridentImpaling | ||
* Removed TridentRiptide | ||
* Removed TridentLoyalty | ||
* Removed TridentChanneling | ||
* Removed CrossbowMultishot | ||
* Removed CrossbowPiercing | ||
* Removed CrossbowQuickCharge | ||
|
||
MinecraftPacketIds: | ||
* Added CameraAimAssist(316) | ||
* Added ContainerRegistryCleanup(317) | ||
* Displaced EndId | ||
|
||
PlayerActionType: | ||
* Added DEPRECATED_StartSpinAttack(23) | ||
* Removed StartSpinAttack | ||
|
||
PlayerAuthInputPacket::InputData: | ||
* Added HorizontalCollision(49) | ||
* Added VerticalCollision(50) | ||
* Added DownLeft(51) | ||
* Added DownRight(52) | ||
* Displaced INPUT_NUM | ||
|
||
Rotation: | ||
* Added Clockwise90(Rotate90) | ||
* Added Clockwise180(Rotate180) | ||
* Added CounterClockwise90(Rotate270) | ||
|
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,24 @@ | ||
digraph "CameraAimAssistPacket" { | ||
rankdir = LR | ||
0 | ||
0 -> 1 | ||
1 -> 2 | ||
0 -> 3 | ||
3 -> 4 | ||
0 -> 5 | ||
5 -> 6 | ||
0 -> 7 | ||
7 -> 8 | ||
|
||
0 [label="CameraAimAssistPacket",comment="name: \"CameraAimAssistPacket\", typeName: \"\", id: 0, branchId: 316, recurseId: -1, attributes: 0, notes: \"\""]; | ||
1 [label="View Angle",comment="name: \"View Angle\", typeName: \"Vec2\", id: 1, branchId: 0, recurseId: -1, attributes: 256, notes: \"\""]; | ||
2 [label="Vec2",comment="name: \"Vec2\", typeName: \"\", id: 2, branchId: 0, recurseId: -1, attributes: 512, notes: \"\""]; | ||
3 [label="Distance",comment="name: \"Distance\", typeName: \"\", id: 3, branchId: 0, recurseId: -1, attributes: 0, notes: \"\""]; | ||
4 [label="float",comment="name: \"float\", typeName: \"\", id: 4, branchId: 0, recurseId: -1, attributes: 512, notes: \"\""]; | ||
5 [label="Target Mode",comment="name: \"Target Mode\", 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: \"\""]; | ||
7 [label="Action",comment="name: \"Action\", typeName: \"\", id: 7, branchId: 0, recurseId: -1, attributes: 0, notes: \"\""]; | ||
8 [label="byte",comment="name: \"byte\", typeName: \"\", id: 8, branchId: 0, recurseId: -1, attributes: 512, notes: \"\""]; | ||
{ rank = max;2;4;6;8} | ||
|
||
} |
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,20 @@ | ||
digraph "ContainerRegistryCleanupPacket" { | ||
rankdir = LR | ||
0 | ||
0 -> 1 | ||
1 -> 2 | ||
2 -> 3 | ||
1 -> 4 | ||
4 -> 5 | ||
5 -> 6 | ||
|
||
0 [label="ContainerRegistryCleanupPacket",comment="name: \"ContainerRegistryCleanupPacket\", typeName: \"\", id: 0, branchId: 317, recurseId: -1, attributes: 0, notes: \"\""]; | ||
1 [label="Removed Containers",comment="name: \"Removed Containers\", typeName: \"\", id: 1, branchId: 0, recurseId: -1, attributes: 8, notes: \"\""]; | ||
2 [label="Array Size",comment="name: \"Array Size\", typeName: \"\", id: 2, branchId: 0, recurseId: -1, attributes: 0, notes: \"\""]; | ||
3 [label="unsigned varint",comment="name: \"unsigned varint\", typeName: \"\", id: 3, branchId: 0, recurseId: -1, attributes: 512, notes: \"\""]; | ||
4 [label="example element",style=dotted,comment="name: \"example element\", typeName: \"\", id: 4, branchId: 0, recurseId: -1, attributes: 16, notes: \"\""]; | ||
5 [label="Full Container Name",comment="name: \"Full Container Name\", typeName: \"FullContainerName\", id: 5, branchId: 0, recurseId: -1, attributes: 256, notes: \"\""]; | ||
6 [label="FullContainerName",comment="name: \"FullContainerName\", typeName: \"\", id: 6, branchId: 0, recurseId: -1, attributes: 512, notes: \"\""]; | ||
{ rank = max;3;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
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,16 +1,16 @@ | ||
digraph "FullContainerName" { | ||
rankdir = LR | ||
101 | ||
101 -> 102 | ||
102 -> 103 | ||
101 -> 104 | ||
104 -> 105 | ||
10 | ||
10 -> 11 | ||
11 -> 12 | ||
10 -> 13 | ||
13 -> 17 | ||
|
||
101 [label="FullContainerName",comment="name: \"FullContainerName\", typeName: \"\", id: 101, branchId: 0, recurseId: -1, attributes: 0, notes: \"\""]; | ||
102 [label="Container Name",comment="name: \"Container Name\", typeName: \"\", id: 102, branchId: 0, recurseId: -1, attributes: 0, notes: \"\""]; | ||
103 [label="byte",comment="name: \"byte\", typeName: \"\", id: 103, branchId: 0, recurseId: -1, attributes: 512, notes: \"\""]; | ||
104 [label="ID if container is dynamic, 0 otherwise.",comment="name: \"ID if container is dynamic, 0 otherwise.\", typeName: \"\", id: 104, branchId: 0, recurseId: -1, attributes: 0, notes: \"\""]; | ||
105 [label="unsigned int",comment="name: \"unsigned int\", typeName: \"\", id: 105, branchId: 0, recurseId: -1, attributes: 512, notes: \"\""]; | ||
{ rank = max;103;105} | ||
10 [label="FullContainerName",comment="name: \"FullContainerName\", typeName: \"\", id: 10, branchId: 0, recurseId: -1, attributes: 0, notes: \"\""]; | ||
11 [label="Container Name",comment="name: \"Container Name\", typeName: \"\", id: 11, branchId: 0, recurseId: -1, attributes: 0, notes: \"\""]; | ||
12 [label="byte",comment="name: \"byte\", typeName: \"\", id: 12, branchId: 0, recurseId: -1, attributes: 512, notes: \"\""]; | ||
13 [label="Optional Dynamic Container ID",comment="name: \"Optional Dynamic Container ID\", typeName: \"std::optional<unsigned int>\", id: 13, branchId: 0, recurseId: -1, attributes: 256, notes: \"\""]; | ||
17 [label="std::optional<unsigned int>",comment="name: \"std::optional<unsigned int>\", typeName: \"\", id: 17, branchId: 0, recurseId: -1, attributes: 512, notes: \"\""]; | ||
{ rank = max;12;17} | ||
|
||
} |
Oops, something went wrong.