跳转至

UpdateBlockPacket

文档版本:r/20_u8
协议版本:671

UpdateBlockPacket数据包,数字ID是21。该数据包用于protocol.packet.updateblockpacket.description

结构

digraph "UpdateBlockPacket" {
rankdir = LR
0
0 -> 1
1 -> 2
0 -> 3
3 -> 4
0 -> 5
5 -> 6
0 -> 7
7 -> 8

0 [label="UpdateBlockPacket",comment="name: \"UpdateBlockPacket\", typeName: \"\", id: 0, branchId: 21, recurseId: -1, attributes: 0, notes: \"\""];
1 [label="Block Position",comment="name: \"Block Position\", typeName: \"NetworkBlockPosition\", id: 1, branchId: 0, recurseId: -1, attributes: 256, notes: \"\""];
2 [label="NetworkBlockPosition",comment="name: \"NetworkBlockPosition\", typeName: \"\", id: 2, branchId: 0, recurseId: -1, attributes: 512, notes: \"\""];
3 [label="Block Runtime ID",comment="name: \"Block Runtime ID\", typeName: \"\", id: 3, branchId: 0, recurseId: -1, attributes: 0, notes: \"\""];
4 [label="unsigned varint",comment="name: \"unsigned varint\", typeName: \"\", id: 4, branchId: 0, recurseId: -1, attributes: 512, notes: \"\""];
5 [label="Flags",comment="name: \"Flags\", typeName: \"\", id: 5, branchId: 0, recurseId: -1, attributes: 0, notes: \"\""];
6 [label="unsigned varint",comment="name: \"unsigned varint\", typeName: \"\", id: 6, branchId: 0, recurseId: -1, attributes: 512, notes: \"\""];
7 [label="Layer",comment="name: \"Layer\", typeName: \"\", id: 7, branchId: 0, recurseId: -1, attributes: 0, notes: \"\""];
8 [label="unsigned varint",comment="name: \"unsigned varint\", typeName: \"\", id: 8, branchId: 0, recurseId: -1, attributes: 512, notes: \"\""];
{ rank = max;2;4;6;8}

}

字段

UpdateBlockPacket
[block_position][block_runtime_id][flags][layer]
Block Position:NetworkBlockPosition
特殊类型。protocol.packet.updateblockpacket.block_position.description
Block Runtime ID:unsigned varint
基本类型。protocol.packet.updateblockpacket.block_runtime_id.description
Flags:unsigned varint
基本类型。protocol.packet.updateblockpacket.flags.description
Layer:unsigned varint
基本类型。protocol.packet.updateblockpacket.layer.description