SetDifficultyPacket¶
文档版本:r/21_u4
协议版本:748
SetDifficultyPacket数据包,数字ID是60
。该数据包用于protocol.packet.setdifficultypacket.description
结构¶
digraph "SetDifficultyPacket" {
rankdir = LR
0
0 -> 1
1 -> 2
0 [label="SetDifficultyPacket",comment="name: \"SetDifficultyPacket\", typeName: \"\", id: 0, branchId: 60, recurseId: -1, attributes: 0, notes: \"\""];
1 [label="Difficulty",comment="name: \"Difficulty\", typeName: \"\", id: 1, branchId: 0, recurseId: -1, attributes: 0, notes: \"\""];
2 [label="unsigned varint",comment="name: \"unsigned varint\", typeName: \"\", id: 2, branchId: 0, recurseId: -1, attributes: 512, notes: \"\""];
{ rank = max;2}
}
字段¶
- Difficulty:unsigned varint
- 基本类型枚举。protocol.packet.setdifficultypacket.difficulty.description枚举值如下:
-
键 值 描述 Peaceful
0
protocol.enum.peaceful Easy
1
protocol.enum.easy Normal
2
protocol.enum.normal Hard
3
protocol.enum.hard Count
4
protocol.enum.count Unknown
5
protocol.enum.unknown