RequestAbilityPacket¶
文档版本:r/21_u4
协议版本:748
RequestAbilityPacket数据包,数字ID是184。该数据包用于protocol.packet.requestabilitypacket.description
结构¶
digraph "RequestAbilityPacket" {
rankdir = LR
0
0 -> 1
1 -> 2
0 -> 3
3 -> 4
0 -> 5
5 -> 6
6 -> 7
7 -> 8
6 -> 9
9 -> 10
5 -> 11
11 -> 12
12 -> 13
11 -> 14
14 -> 15
0 [label="RequestAbilityPacket",comment="name: \"RequestAbilityPacket\", typeName: \"\", id: 0, branchId: 184, recurseId: -1, attributes: 0, notes: \"\""];
1 [label="Ability",comment="name: \"Ability\", typeName: \"\", id: 1, branchId: 0, recurseId: -1, attributes: 0, notes: \"\""];
2 [label="varint",comment="name: \"varint\", typeName: \"\", id: 2, branchId: 0, recurseId: -1, attributes: 512, notes: \"\""];
3 [label="Value Type",comment="name: \"Value 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="Dependency on 'Value Type'",shape=note,comment="name: \"Dependency on 'Value Type'\", typeName: \"\", id: 5, branchId: 0, recurseId: -1, attributes: 2, notes: \"\""];
6 [label="if (1)",shape=diamond,comment="name: \"if (1)\", typeName: \"\", id: 6, branchId: 1, recurseId: -1, attributes: 4, notes: \"\""];
7 [label="Varible Value",comment="name: \"Varible Value\", typeName: \"\", id: 7, branchId: 0, recurseId: -1, attributes: 0, notes: \"\""];
8 [label="bool",comment="name: \"bool\", typeName: \"\", id: 8, branchId: 0, recurseId: -1, attributes: 512, notes: \"\""];
9 [label="Default Value = 0.0",comment="name: \"Default Value = 0.0\", typeName: \"\", id: 9, branchId: 0, recurseId: -1, attributes: 0, notes: \"\""];
10 [label="float",comment="name: \"float\", typeName: \"\", id: 10, branchId: 0, recurseId: -1, attributes: 512, notes: \"\""];
11 [label="if (2)",shape=diamond,comment="name: \"if (2)\", typeName: \"\", id: 11, branchId: 2, recurseId: -1, attributes: 4, notes: \"\""];
12 [label="Default Value = false",comment="name: \"Default Value = false\", typeName: \"\", id: 12, branchId: 0, recurseId: -1, attributes: 0, notes: \"\""];
13 [label="bool",comment="name: \"bool\", typeName: \"\", id: 13, branchId: 0, recurseId: -1, attributes: 512, notes: \"\""];
14 [label="Varible Value",comment="name: \"Varible Value\", typeName: \"\", id: 14, branchId: 0, recurseId: -1, attributes: 0, notes: \"\""];
15 [label="float",comment="name: \"float\", typeName: \"\", id: 15, branchId: 0, recurseId: -1, attributes: 512, notes: \"\""];
{ rank = max;2;4;8;10;13;15}
}
字段¶
- Ability:varint
- 基本类型枚举。protocol.packet.requestabilitypacket.ability.description枚举值如下:
-
键 值 描述 Invalid-1protocol.enum.invalid Build0protocol.enum.build Mine1protocol.enum.mine DoorsAndSwitches2protocol.enum.doorsandswitches OpenContainers3protocol.enum.opencontainers AttackPlayers4protocol.enum.attackplayers AttackMobs5protocol.enum.attackmobs OperatorCommands6protocol.enum.operatorcommands Teleport7protocol.enum.teleport Invulnerable8protocol.enum.invulnerable Flying9protocol.enum.flying MayFly10protocol.enum.mayfly Instabuild11protocol.enum.instabuild Lightning12protocol.enum.lightning FlySpeed13protocol.enum.flyspeed WalkSpeed14protocol.enum.walkspeed Muted15protocol.enum.muted WorldBuilder16protocol.enum.worldbuilder NoClip17protocol.enum.noclip PrivilegedBuilder18protocol.enum.privilegedbuilder AbilityCount19protocol.enum.abilitycount
- Value Type:byte
- 基本类型枚举。protocol.packet.requestabilitypacket.value_type.description枚举值如下:
-
键 值 描述 Unset0protocol.enum.unset Bool1protocol.enum.bool Float2protocol.enum.float
依赖于
Value Type
- Varible Value:bool
- 基本类型。protocol.packet.requestabilitypacket.dependency_on_value_type.if_1.varible_value.description
- Default Value = 0.0:float
- 基本类型。protocol.packet.requestabilitypacket.dependency_on_value_type.if_1.default_value_=_0.0.description