-
Notifications
You must be signed in to change notification settings - Fork 1
/
packet-names.js
124 lines (124 loc) · 2.66 KB
/
packet-names.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
exports.packets = {
handshaking: {
toClient: {},
toServer: {
0x00: 'handshake'
},
},
play: {
toClient: {
0x00: 'keepAlive',
0x01: 'joinGame',
0x02: 'chatMessage',
0x03: 'timeUpdate',
0x04: 'entityEquipment',
0x05: 'spawnPosition',
0x06: 'updateHealth',
0x07: 'respawn',
0x08: 'playerPositionAndLook',
0x09: 'heldItemChange',
0x0A: 'useBed',
0x0B: 'animation',
0x0C: 'spawnPlayer',
0x0D: 'collectItem',
0x0E: 'spawnObject',
0x0F: 'spawnMob',
0x10: 'spawnPainting',
0x11: 'spawnExperienceOrb',
0x12: 'entityVelocity',
0x13: 'destroyEntities',
0x14: 'entity',
0x15: 'entityRelativeMove',
0x16: 'entityLook',
0x17: 'entityLookAndRelativeMove',
0x18: 'entityTeleport',
0x19: 'entityHeadLook',
0x1A: 'entityStatus',
0x1B: 'attachEntity',
0x1C: 'entityMetadata',
0x1D: 'entityEffect',
0x1E: 'removeEntityEffect',
0x1F: 'setExperience',
0x20: 'entityProperties',
0x21: 'chunkData',
0x22: 'multiBlockChange',
0x23: 'blockChange',
0x24: 'blockAction',
0x25: 'blockBreakAnimation',
0x26: 'mapChunkBulk',
0x27: 'explision',
0x28: 'effect',
0x29: 'soundEffect',
0x2A: 'particle',
0x2B: 'changeGameState',
0x2C: 'spawnGlobalEntity',
0x2D: 'openWindow',
0x2E: 'closeWindow',
0x2F: 'setSlot',
0x30: 'windowItems',
0x31: 'windowProperty',
0x32: 'confirmTransaction',
0x33: 'updateSign',
0x34: 'maps',
0x35: 'updateBlockEntity',
0x36: 'signEditorOpen',
0x37: 'statistics',
0x38: 'playerListItem',
0x39: 'playerAbilities',
0x3A: 'tabComplete',
0x3B: 'scoreboardObjective',
0x3C: 'updateScore',
0x3D: 'displayScoreboard',
0x3E: 'teams',
0x3F: 'pluginMessage',
0x40: 'disconnect'
},
toServer: {
0x00: 'keepAlive',
0x01: 'chatMessage',
0x02: 'useEntity',
0x03: 'player',
0x04: 'playerPosition',
0x05: 'playerLook',
0x06: 'playerPositionAndLook',
0x07: 'playerDigging',
0x08: 'playerBlockPlacement',
0x09: 'heldItemChange',
0x0A: 'animation',
0x0B: 'entityAction',
0x0C: 'steerVehicle',
0x0D: 'closeWindow',
0x0E: 'clickWindow',
0x0F: 'confirmTransaction',
0x10: 'creativeInventoryAction',
0x11: 'enchantItem',
0x12: 'updateSign',
0x13: 'playerAbilities',
0x14: 'tabComplete',
0x15: 'clientSettings',
0x16: 'clientStatus',
0x17: 'pluginMessage'
}
},
status: {
toClient: {
0x00: 'response',
0x01: 'ping',
},
toServer: {
0x00: 'request',
0x01: 'ping'
}
},
login: {
toClient: {
0x00: 'disconnect',
0x01: 'encryptionRequest',
0x02: 'loginSuccess'
},
toServer: {
0x00: 'loginStart',
0x01: 'encryptionResponse'
}
}
};