@miniblox/protocol 3.41.77-0.0.0 → 3.41.77-0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{protocol2_pb.d.mts → index.d.mts} +361 -15
- package/dist/{protocol2_pb.mjs → index.mjs} +641 -14
- package/package.json +4 -2
- package/dist/common_pb.d.mts +0 -132
- package/dist/common_pb.mjs +0 -252
- package/dist/protocol3_pb.d.mts +0 -104
- package/dist/protocol3_pb.mjs +0 -233
|
@@ -1,6 +1,485 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import { Message, proto2, proto3 } from "@bufbuild/protobuf";
|
|
2
|
+
//#region gen/common_pb.ts
|
|
3
|
+
/**
|
|
4
|
+
* @generated from enum Equipment_Slot
|
|
5
|
+
*/
|
|
6
|
+
let Equipment_Slot = /* @__PURE__ */ function(Equipment_Slot) {
|
|
7
|
+
/**
|
|
8
|
+
* @generated from enum value: UNDEFINED_SLOT = 0;
|
|
9
|
+
*/
|
|
10
|
+
Equipment_Slot[Equipment_Slot["UNDEFINED_SLOT"] = 0] = "UNDEFINED_SLOT";
|
|
11
|
+
/**
|
|
12
|
+
* @generated from enum value: MAIN_HAND = 1;
|
|
13
|
+
*/
|
|
14
|
+
Equipment_Slot[Equipment_Slot["MAIN_HAND"] = 1] = "MAIN_HAND";
|
|
15
|
+
/**
|
|
16
|
+
* @generated from enum value: OFF_HAND = 2;
|
|
17
|
+
*/
|
|
18
|
+
Equipment_Slot[Equipment_Slot["OFF_HAND"] = 2] = "OFF_HAND";
|
|
19
|
+
/**
|
|
20
|
+
* @generated from enum value: HELMET = 3;
|
|
21
|
+
*/
|
|
22
|
+
Equipment_Slot[Equipment_Slot["HELMET"] = 3] = "HELMET";
|
|
23
|
+
/**
|
|
24
|
+
* @generated from enum value: CHESTPLATE = 4;
|
|
25
|
+
*/
|
|
26
|
+
Equipment_Slot[Equipment_Slot["CHESTPLATE"] = 4] = "CHESTPLATE";
|
|
27
|
+
/**
|
|
28
|
+
* @generated from enum value: LEGGINGS = 5;
|
|
29
|
+
*/
|
|
30
|
+
Equipment_Slot[Equipment_Slot["LEGGINGS"] = 5] = "LEGGINGS";
|
|
31
|
+
/**
|
|
32
|
+
* @generated from enum value: BOOTS = 6;
|
|
33
|
+
*/
|
|
34
|
+
Equipment_Slot[Equipment_Slot["BOOTS"] = 6] = "BOOTS";
|
|
35
|
+
return Equipment_Slot;
|
|
36
|
+
}({});
|
|
37
|
+
proto2.util.setEnumType(Equipment_Slot, "Equipment_Slot", [
|
|
38
|
+
{
|
|
39
|
+
no: 0,
|
|
40
|
+
name: "UNDEFINED_SLOT"
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
no: 1,
|
|
44
|
+
name: "MAIN_HAND"
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
no: 2,
|
|
48
|
+
name: "OFF_HAND"
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
no: 3,
|
|
52
|
+
name: "HELMET"
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
no: 4,
|
|
56
|
+
name: "CHESTPLATE"
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
no: 5,
|
|
60
|
+
name: "LEGGINGS"
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
no: 6,
|
|
64
|
+
name: "BOOTS"
|
|
65
|
+
}
|
|
66
|
+
]);
|
|
67
|
+
/**
|
|
68
|
+
* @generated from enum PBAction
|
|
69
|
+
*/
|
|
70
|
+
let PBAction = /* @__PURE__ */ function(PBAction) {
|
|
71
|
+
/**
|
|
72
|
+
* @generated from enum value: START_DESTROY_BLOCK = 0;
|
|
73
|
+
*/
|
|
74
|
+
PBAction[PBAction["START_DESTROY_BLOCK"] = 0] = "START_DESTROY_BLOCK";
|
|
75
|
+
/**
|
|
76
|
+
* @generated from enum value: ABORT_DESTROY_BLOCK = 1;
|
|
77
|
+
*/
|
|
78
|
+
PBAction[PBAction["ABORT_DESTROY_BLOCK"] = 1] = "ABORT_DESTROY_BLOCK";
|
|
79
|
+
/**
|
|
80
|
+
* @generated from enum value: STOP_DESTROY_BLOCK = 2;
|
|
81
|
+
*/
|
|
82
|
+
PBAction[PBAction["STOP_DESTROY_BLOCK"] = 2] = "STOP_DESTROY_BLOCK";
|
|
83
|
+
/**
|
|
84
|
+
* @generated from enum value: DROP_ALL_ITEMS = 3;
|
|
85
|
+
*/
|
|
86
|
+
PBAction[PBAction["DROP_ALL_ITEMS"] = 3] = "DROP_ALL_ITEMS";
|
|
87
|
+
/**
|
|
88
|
+
* @generated from enum value: DROP_ITEM = 4;
|
|
89
|
+
*/
|
|
90
|
+
PBAction[PBAction["DROP_ITEM"] = 4] = "DROP_ITEM";
|
|
91
|
+
/**
|
|
92
|
+
* @generated from enum value: RELEASE_USE_ITEM = 5;
|
|
93
|
+
*/
|
|
94
|
+
PBAction[PBAction["RELEASE_USE_ITEM"] = 5] = "RELEASE_USE_ITEM";
|
|
95
|
+
return PBAction;
|
|
96
|
+
}({});
|
|
97
|
+
proto2.util.setEnumType(PBAction, "PBAction", [
|
|
98
|
+
{
|
|
99
|
+
no: 0,
|
|
100
|
+
name: "START_DESTROY_BLOCK"
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
no: 1,
|
|
104
|
+
name: "ABORT_DESTROY_BLOCK"
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
no: 2,
|
|
108
|
+
name: "STOP_DESTROY_BLOCK"
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
no: 3,
|
|
112
|
+
name: "DROP_ALL_ITEMS"
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
no: 4,
|
|
116
|
+
name: "DROP_ITEM"
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
no: 5,
|
|
120
|
+
name: "RELEASE_USE_ITEM"
|
|
121
|
+
}
|
|
122
|
+
]);
|
|
123
|
+
/**
|
|
124
|
+
* @generated from enum PBEnumFacing
|
|
125
|
+
*/
|
|
126
|
+
let PBEnumFacing = /* @__PURE__ */ function(PBEnumFacing) {
|
|
127
|
+
/**
|
|
128
|
+
* @generated from enum value: UNDEFINED_FACE = 0;
|
|
129
|
+
*/
|
|
130
|
+
PBEnumFacing[PBEnumFacing["UNDEFINED_FACE"] = 0] = "UNDEFINED_FACE";
|
|
131
|
+
/**
|
|
132
|
+
* @generated from enum value: DOWN = 1;
|
|
133
|
+
*/
|
|
134
|
+
PBEnumFacing[PBEnumFacing["DOWN"] = 1] = "DOWN";
|
|
135
|
+
/**
|
|
136
|
+
* @generated from enum value: UP = 2;
|
|
137
|
+
*/
|
|
138
|
+
PBEnumFacing[PBEnumFacing["UP"] = 2] = "UP";
|
|
139
|
+
/**
|
|
140
|
+
* @generated from enum value: NORTH = 3;
|
|
141
|
+
*/
|
|
142
|
+
PBEnumFacing[PBEnumFacing["NORTH"] = 3] = "NORTH";
|
|
143
|
+
/**
|
|
144
|
+
* @generated from enum value: SOUTH = 4;
|
|
145
|
+
*/
|
|
146
|
+
PBEnumFacing[PBEnumFacing["SOUTH"] = 4] = "SOUTH";
|
|
147
|
+
/**
|
|
148
|
+
* @generated from enum value: WEST = 5;
|
|
149
|
+
*/
|
|
150
|
+
PBEnumFacing[PBEnumFacing["WEST"] = 5] = "WEST";
|
|
151
|
+
/**
|
|
152
|
+
* @generated from enum value: EAST = 6;
|
|
153
|
+
*/
|
|
154
|
+
PBEnumFacing[PBEnumFacing["EAST"] = 6] = "EAST";
|
|
155
|
+
return PBEnumFacing;
|
|
156
|
+
}({});
|
|
157
|
+
proto2.util.setEnumType(PBEnumFacing, "PBEnumFacing", [
|
|
158
|
+
{
|
|
159
|
+
no: 0,
|
|
160
|
+
name: "UNDEFINED_FACE"
|
|
161
|
+
},
|
|
162
|
+
{
|
|
163
|
+
no: 1,
|
|
164
|
+
name: "DOWN"
|
|
165
|
+
},
|
|
166
|
+
{
|
|
167
|
+
no: 2,
|
|
168
|
+
name: "UP"
|
|
169
|
+
},
|
|
170
|
+
{
|
|
171
|
+
no: 3,
|
|
172
|
+
name: "NORTH"
|
|
173
|
+
},
|
|
174
|
+
{
|
|
175
|
+
no: 4,
|
|
176
|
+
name: "SOUTH"
|
|
177
|
+
},
|
|
178
|
+
{
|
|
179
|
+
no: 5,
|
|
180
|
+
name: "WEST"
|
|
181
|
+
},
|
|
182
|
+
{
|
|
183
|
+
no: 6,
|
|
184
|
+
name: "EAST"
|
|
185
|
+
}
|
|
186
|
+
]);
|
|
187
|
+
/**
|
|
188
|
+
* @generated from enum SPacketUseEntity_Action
|
|
189
|
+
*/
|
|
190
|
+
let SPacketUseEntity_Action = /* @__PURE__ */ function(SPacketUseEntity_Action) {
|
|
191
|
+
/**
|
|
192
|
+
* @generated from enum value: INTERACT = 0;
|
|
193
|
+
*/
|
|
194
|
+
SPacketUseEntity_Action[SPacketUseEntity_Action["INTERACT"] = 0] = "INTERACT";
|
|
195
|
+
/**
|
|
196
|
+
* @generated from enum value: ATTACK = 1;
|
|
197
|
+
*/
|
|
198
|
+
SPacketUseEntity_Action[SPacketUseEntity_Action["ATTACK"] = 1] = "ATTACK";
|
|
199
|
+
/**
|
|
200
|
+
* @generated from enum value: INTERACT_AT = 2;
|
|
201
|
+
*/
|
|
202
|
+
SPacketUseEntity_Action[SPacketUseEntity_Action["INTERACT_AT"] = 2] = "INTERACT_AT";
|
|
203
|
+
return SPacketUseEntity_Action;
|
|
204
|
+
}({});
|
|
205
|
+
proto2.util.setEnumType(SPacketUseEntity_Action, "SPacketUseEntity_Action", [
|
|
206
|
+
{
|
|
207
|
+
no: 0,
|
|
208
|
+
name: "INTERACT"
|
|
209
|
+
},
|
|
210
|
+
{
|
|
211
|
+
no: 1,
|
|
212
|
+
name: "ATTACK"
|
|
213
|
+
},
|
|
214
|
+
{
|
|
215
|
+
no: 2,
|
|
216
|
+
name: "INTERACT_AT"
|
|
217
|
+
}
|
|
218
|
+
]);
|
|
219
|
+
/**
|
|
220
|
+
* @generated from enum CPacketLocalStorage_Action
|
|
221
|
+
*/
|
|
222
|
+
let CPacketLocalStorage_Action = /* @__PURE__ */ function(CPacketLocalStorage_Action) {
|
|
223
|
+
/**
|
|
224
|
+
* @generated from enum value: DEFAULT = 0;
|
|
225
|
+
*/
|
|
226
|
+
CPacketLocalStorage_Action[CPacketLocalStorage_Action["DEFAULT"] = 0] = "DEFAULT";
|
|
227
|
+
/**
|
|
228
|
+
* @generated from enum value: REMOVE = 1;
|
|
229
|
+
*/
|
|
230
|
+
CPacketLocalStorage_Action[CPacketLocalStorage_Action["REMOVE"] = 1] = "REMOVE";
|
|
231
|
+
/**
|
|
232
|
+
* @generated from enum value: SET = 2;
|
|
233
|
+
*/
|
|
234
|
+
CPacketLocalStorage_Action[CPacketLocalStorage_Action["SET"] = 2] = "SET";
|
|
235
|
+
return CPacketLocalStorage_Action;
|
|
236
|
+
}({});
|
|
237
|
+
proto2.util.setEnumType(CPacketLocalStorage_Action, "CPacketLocalStorage_Action", [
|
|
238
|
+
{
|
|
239
|
+
no: 0,
|
|
240
|
+
name: "DEFAULT"
|
|
241
|
+
},
|
|
242
|
+
{
|
|
243
|
+
no: 1,
|
|
244
|
+
name: "REMOVE"
|
|
245
|
+
},
|
|
246
|
+
{
|
|
247
|
+
no: 2,
|
|
248
|
+
name: "SET"
|
|
249
|
+
}
|
|
250
|
+
]);
|
|
251
|
+
//#endregion
|
|
252
|
+
//#region gen/protocol3_pb.ts
|
|
253
|
+
/**
|
|
254
|
+
* @generated from message PBCell
|
|
255
|
+
*/
|
|
256
|
+
var PBCell = class PBCell extends Message {
|
|
257
|
+
/**
|
|
258
|
+
* @generated from field: uint32 bitsPerEntry = 2;
|
|
259
|
+
*/
|
|
260
|
+
bitsPerEntry = 0;
|
|
261
|
+
/**
|
|
262
|
+
* @generated from field: repeated uint32 palette = 3;
|
|
263
|
+
*/
|
|
264
|
+
palette = [];
|
|
265
|
+
/**
|
|
266
|
+
* @generated from field: uint32 blockRefCount = 5;
|
|
267
|
+
*/
|
|
268
|
+
blockRefCount = 0;
|
|
269
|
+
/**
|
|
270
|
+
* @generated from field: bytes bitArray = 6;
|
|
271
|
+
*/
|
|
272
|
+
bitArray = new Uint8Array(0);
|
|
273
|
+
/**
|
|
274
|
+
* @generated from field: uint32 y = 7;
|
|
275
|
+
*/
|
|
276
|
+
y = 0;
|
|
277
|
+
constructor(data) {
|
|
278
|
+
super();
|
|
279
|
+
proto3.util.initPartial(data, this);
|
|
280
|
+
}
|
|
281
|
+
static runtime = proto3;
|
|
282
|
+
static typeName = "PBCell";
|
|
283
|
+
static fields = proto3.util.newFieldList(() => [
|
|
284
|
+
{
|
|
285
|
+
no: 2,
|
|
286
|
+
name: "bitsPerEntry",
|
|
287
|
+
kind: "scalar",
|
|
288
|
+
T: 13
|
|
289
|
+
},
|
|
290
|
+
{
|
|
291
|
+
no: 3,
|
|
292
|
+
name: "palette",
|
|
293
|
+
kind: "scalar",
|
|
294
|
+
T: 13,
|
|
295
|
+
repeated: true
|
|
296
|
+
},
|
|
297
|
+
{
|
|
298
|
+
no: 5,
|
|
299
|
+
name: "blockRefCount",
|
|
300
|
+
kind: "scalar",
|
|
301
|
+
T: 13
|
|
302
|
+
},
|
|
303
|
+
{
|
|
304
|
+
no: 6,
|
|
305
|
+
name: "bitArray",
|
|
306
|
+
kind: "scalar",
|
|
307
|
+
T: 12
|
|
308
|
+
},
|
|
309
|
+
{
|
|
310
|
+
no: 7,
|
|
311
|
+
name: "y",
|
|
312
|
+
kind: "scalar",
|
|
313
|
+
T: 13
|
|
314
|
+
}
|
|
315
|
+
]);
|
|
316
|
+
static fromBinary(bytes, options) {
|
|
317
|
+
return new PBCell().fromBinary(bytes, options);
|
|
318
|
+
}
|
|
319
|
+
static fromJson(jsonValue, options) {
|
|
320
|
+
return new PBCell().fromJson(jsonValue, options);
|
|
321
|
+
}
|
|
322
|
+
static fromJsonString(jsonString, options) {
|
|
323
|
+
return new PBCell().fromJsonString(jsonString, options);
|
|
324
|
+
}
|
|
325
|
+
static equals(a, b) {
|
|
326
|
+
return proto3.util.equals(PBCell, a, b);
|
|
327
|
+
}
|
|
328
|
+
};
|
|
329
|
+
/**
|
|
330
|
+
* @generated from message PBTileEntity
|
|
331
|
+
*/
|
|
332
|
+
var PBTileEntity = class PBTileEntity extends Message {
|
|
333
|
+
/**
|
|
334
|
+
* @generated from field: sint32 x = 1;
|
|
335
|
+
*/
|
|
336
|
+
x = 0;
|
|
337
|
+
/**
|
|
338
|
+
* @generated from field: uint32 y = 2;
|
|
339
|
+
*/
|
|
340
|
+
y = 0;
|
|
341
|
+
/**
|
|
342
|
+
* @generated from field: sint32 z = 3;
|
|
343
|
+
*/
|
|
344
|
+
z = 0;
|
|
345
|
+
/**
|
|
346
|
+
* @generated from field: bytes nbt = 5;
|
|
347
|
+
*/
|
|
348
|
+
nbt = new Uint8Array(0);
|
|
349
|
+
constructor(data) {
|
|
350
|
+
super();
|
|
351
|
+
proto3.util.initPartial(data, this);
|
|
352
|
+
}
|
|
353
|
+
static runtime = proto3;
|
|
354
|
+
static typeName = "PBTileEntity";
|
|
355
|
+
static fields = proto3.util.newFieldList(() => [
|
|
356
|
+
{
|
|
357
|
+
no: 1,
|
|
358
|
+
name: "x",
|
|
359
|
+
kind: "scalar",
|
|
360
|
+
T: 17
|
|
361
|
+
},
|
|
362
|
+
{
|
|
363
|
+
no: 2,
|
|
364
|
+
name: "y",
|
|
365
|
+
kind: "scalar",
|
|
366
|
+
T: 13
|
|
367
|
+
},
|
|
368
|
+
{
|
|
369
|
+
no: 3,
|
|
370
|
+
name: "z",
|
|
371
|
+
kind: "scalar",
|
|
372
|
+
T: 17
|
|
373
|
+
},
|
|
374
|
+
{
|
|
375
|
+
no: 5,
|
|
376
|
+
name: "nbt",
|
|
377
|
+
kind: "scalar",
|
|
378
|
+
T: 12
|
|
379
|
+
}
|
|
380
|
+
]);
|
|
381
|
+
static fromBinary(bytes, options) {
|
|
382
|
+
return new PBTileEntity().fromBinary(bytes, options);
|
|
383
|
+
}
|
|
384
|
+
static fromJson(jsonValue, options) {
|
|
385
|
+
return new PBTileEntity().fromJson(jsonValue, options);
|
|
386
|
+
}
|
|
387
|
+
static fromJsonString(jsonString, options) {
|
|
388
|
+
return new PBTileEntity().fromJsonString(jsonString, options);
|
|
389
|
+
}
|
|
390
|
+
static equals(a, b) {
|
|
391
|
+
return proto3.util.equals(PBTileEntity, a, b);
|
|
392
|
+
}
|
|
393
|
+
};
|
|
394
|
+
/**
|
|
395
|
+
* @generated from message CPacketChunkData
|
|
396
|
+
*/
|
|
397
|
+
var CPacketChunkData = class CPacketChunkData extends Message {
|
|
398
|
+
/**
|
|
399
|
+
* @generated from field: sint32 x = 1;
|
|
400
|
+
*/
|
|
401
|
+
x = 0;
|
|
402
|
+
/**
|
|
403
|
+
* @generated from field: sint32 z = 2;
|
|
404
|
+
*/
|
|
405
|
+
z = 0;
|
|
406
|
+
/**
|
|
407
|
+
* @generated from field: repeated PBCell cells = 3;
|
|
408
|
+
*/
|
|
409
|
+
cells = [];
|
|
410
|
+
/**
|
|
411
|
+
* @generated from field: repeated PBTileEntity tileEntities = 4;
|
|
412
|
+
*/
|
|
413
|
+
tileEntities = [];
|
|
414
|
+
/**
|
|
415
|
+
* @generated from field: int32 dimension = 5;
|
|
416
|
+
*/
|
|
417
|
+
dimension = 0;
|
|
418
|
+
/**
|
|
419
|
+
* @generated from field: repeated uint32 biomes = 6;
|
|
420
|
+
*/
|
|
421
|
+
biomes = [];
|
|
422
|
+
constructor(data) {
|
|
423
|
+
super();
|
|
424
|
+
proto3.util.initPartial(data, this);
|
|
425
|
+
}
|
|
426
|
+
static runtime = proto3;
|
|
427
|
+
static typeName = "CPacketChunkData";
|
|
428
|
+
static fields = proto3.util.newFieldList(() => [
|
|
429
|
+
{
|
|
430
|
+
no: 1,
|
|
431
|
+
name: "x",
|
|
432
|
+
kind: "scalar",
|
|
433
|
+
T: 17
|
|
434
|
+
},
|
|
435
|
+
{
|
|
436
|
+
no: 2,
|
|
437
|
+
name: "z",
|
|
438
|
+
kind: "scalar",
|
|
439
|
+
T: 17
|
|
440
|
+
},
|
|
441
|
+
{
|
|
442
|
+
no: 3,
|
|
443
|
+
name: "cells",
|
|
444
|
+
kind: "message",
|
|
445
|
+
T: PBCell,
|
|
446
|
+
repeated: true
|
|
447
|
+
},
|
|
448
|
+
{
|
|
449
|
+
no: 4,
|
|
450
|
+
name: "tileEntities",
|
|
451
|
+
kind: "message",
|
|
452
|
+
T: PBTileEntity,
|
|
453
|
+
repeated: true
|
|
454
|
+
},
|
|
455
|
+
{
|
|
456
|
+
no: 5,
|
|
457
|
+
name: "dimension",
|
|
458
|
+
kind: "scalar",
|
|
459
|
+
T: 5
|
|
460
|
+
},
|
|
461
|
+
{
|
|
462
|
+
no: 6,
|
|
463
|
+
name: "biomes",
|
|
464
|
+
kind: "scalar",
|
|
465
|
+
T: 13,
|
|
466
|
+
repeated: true
|
|
467
|
+
}
|
|
468
|
+
]);
|
|
469
|
+
static fromBinary(bytes, options) {
|
|
470
|
+
return new CPacketChunkData().fromBinary(bytes, options);
|
|
471
|
+
}
|
|
472
|
+
static fromJson(jsonValue, options) {
|
|
473
|
+
return new CPacketChunkData().fromJson(jsonValue, options);
|
|
474
|
+
}
|
|
475
|
+
static fromJsonString(jsonString, options) {
|
|
476
|
+
return new CPacketChunkData().fromJsonString(jsonString, options);
|
|
477
|
+
}
|
|
478
|
+
static equals(a, b) {
|
|
479
|
+
return proto3.util.equals(CPacketChunkData, a, b);
|
|
480
|
+
}
|
|
481
|
+
};
|
|
482
|
+
//#endregion
|
|
4
483
|
//#region gen/protocol2_pb.ts
|
|
5
484
|
/**
|
|
6
485
|
* @generated from message CPacketAnimation
|
|
@@ -4654,7 +5133,7 @@ var CPacketTimeUpdate = class CPacketTimeUpdate extends Message {
|
|
|
4654
5133
|
*/
|
|
4655
5134
|
var ClientBoundCombined = class ClientBoundCombined extends Message {
|
|
4656
5135
|
/**
|
|
4657
|
-
* @generated from field: repeated ClientBoundCombined.
|
|
5136
|
+
* @generated from field: repeated ClientBoundCombined.CPacket packets = 1;
|
|
4658
5137
|
*/
|
|
4659
5138
|
packets = [];
|
|
4660
5139
|
constructor(data) {
|
|
@@ -4667,7 +5146,7 @@ var ClientBoundCombined = class ClientBoundCombined extends Message {
|
|
|
4667
5146
|
no: 1,
|
|
4668
5147
|
name: "packets",
|
|
4669
5148
|
kind: "message",
|
|
4670
|
-
T:
|
|
5149
|
+
T: ClientBoundCombined_CPacket,
|
|
4671
5150
|
repeated: true
|
|
4672
5151
|
}]);
|
|
4673
5152
|
static fromBinary(bytes, options) {
|
|
@@ -4684,11 +5163,11 @@ var ClientBoundCombined = class ClientBoundCombined extends Message {
|
|
|
4684
5163
|
}
|
|
4685
5164
|
};
|
|
4686
5165
|
/**
|
|
4687
|
-
* @generated from message ClientBoundCombined.
|
|
5166
|
+
* @generated from message ClientBoundCombined.CPacket
|
|
4688
5167
|
*/
|
|
4689
|
-
var
|
|
5168
|
+
var ClientBoundCombined_CPacket = class ClientBoundCombined_CPacket extends Message {
|
|
4690
5169
|
/**
|
|
4691
|
-
* @generated from oneof ClientBoundCombined.
|
|
5170
|
+
* @generated from oneof ClientBoundCombined.CPacket.packet
|
|
4692
5171
|
*/
|
|
4693
5172
|
packet = { case: void 0 };
|
|
4694
5173
|
constructor(data) {
|
|
@@ -4696,7 +5175,7 @@ var ClientBoundCombined_ClientBoundCombined_CPacket = class ClientBoundCombined_
|
|
|
4696
5175
|
proto2.util.initPartial(data, this);
|
|
4697
5176
|
}
|
|
4698
5177
|
static runtime = proto2;
|
|
4699
|
-
static typeName = "ClientBoundCombined.
|
|
5178
|
+
static typeName = "ClientBoundCombined.CPacket";
|
|
4700
5179
|
static fields = proto2.util.newFieldList(() => [
|
|
4701
5180
|
{
|
|
4702
5181
|
no: 1,
|
|
@@ -5106,16 +5585,16 @@ var ClientBoundCombined_ClientBoundCombined_CPacket = class ClientBoundCombined_
|
|
|
5106
5585
|
}
|
|
5107
5586
|
]);
|
|
5108
5587
|
static fromBinary(bytes, options) {
|
|
5109
|
-
return new
|
|
5588
|
+
return new ClientBoundCombined_CPacket().fromBinary(bytes, options);
|
|
5110
5589
|
}
|
|
5111
5590
|
static fromJson(jsonValue, options) {
|
|
5112
|
-
return new
|
|
5591
|
+
return new ClientBoundCombined_CPacket().fromJson(jsonValue, options);
|
|
5113
5592
|
}
|
|
5114
5593
|
static fromJsonString(jsonString, options) {
|
|
5115
|
-
return new
|
|
5594
|
+
return new ClientBoundCombined_CPacket().fromJsonString(jsonString, options);
|
|
5116
5595
|
}
|
|
5117
5596
|
static equals(a, b) {
|
|
5118
|
-
return proto2.util.equals(
|
|
5597
|
+
return proto2.util.equals(ClientBoundCombined_CPacket, a, b);
|
|
5119
5598
|
}
|
|
5120
5599
|
};
|
|
5121
5600
|
/**
|
|
@@ -6381,6 +6860,40 @@ var SPacketRespawn = class SPacketRespawn extends Message {
|
|
|
6381
6860
|
}
|
|
6382
6861
|
};
|
|
6383
6862
|
/**
|
|
6863
|
+
* @generated from message SPacketTabComplete
|
|
6864
|
+
*/
|
|
6865
|
+
var SPacketTabComplete = class SPacketTabComplete extends Message {
|
|
6866
|
+
/**
|
|
6867
|
+
* @generated from field: required string message = 1;
|
|
6868
|
+
*/
|
|
6869
|
+
message;
|
|
6870
|
+
constructor(data) {
|
|
6871
|
+
super();
|
|
6872
|
+
proto2.util.initPartial(data, this);
|
|
6873
|
+
}
|
|
6874
|
+
static runtime = proto2;
|
|
6875
|
+
static typeName = "SPacketTabComplete";
|
|
6876
|
+
static fields = proto2.util.newFieldList(() => [{
|
|
6877
|
+
no: 1,
|
|
6878
|
+
name: "message",
|
|
6879
|
+
kind: "scalar",
|
|
6880
|
+
T: 9,
|
|
6881
|
+
req: true
|
|
6882
|
+
}]);
|
|
6883
|
+
static fromBinary(bytes, options) {
|
|
6884
|
+
return new SPacketTabComplete().fromBinary(bytes, options);
|
|
6885
|
+
}
|
|
6886
|
+
static fromJson(jsonValue, options) {
|
|
6887
|
+
return new SPacketTabComplete().fromJson(jsonValue, options);
|
|
6888
|
+
}
|
|
6889
|
+
static fromJsonString(jsonString, options) {
|
|
6890
|
+
return new SPacketTabComplete().fromJsonString(jsonString, options);
|
|
6891
|
+
}
|
|
6892
|
+
static equals(a, b) {
|
|
6893
|
+
return proto2.util.equals(SPacketTabComplete, a, b);
|
|
6894
|
+
}
|
|
6895
|
+
};
|
|
6896
|
+
/**
|
|
6384
6897
|
* @generated from message SPacketUpdateSign
|
|
6385
6898
|
*/
|
|
6386
6899
|
var SPacketUpdateSign = class SPacketUpdateSign extends Message {
|
|
@@ -7040,4 +7553,118 @@ var SPacketUseItem = class SPacketUseItem extends Message {
|
|
|
7040
7553
|
}
|
|
7041
7554
|
};
|
|
7042
7555
|
//#endregion
|
|
7043
|
-
|
|
7556
|
+
//#region src/index.ts
|
|
7557
|
+
const CPACKET_MAP = {
|
|
7558
|
+
CPacketAnimation,
|
|
7559
|
+
CPacketBlockAction,
|
|
7560
|
+
CPacketBlockUpdate,
|
|
7561
|
+
CPacketChangeServers,
|
|
7562
|
+
CPacketChunkData,
|
|
7563
|
+
CPacketCloseWindow,
|
|
7564
|
+
CPacketConfirmTransaction,
|
|
7565
|
+
CPacketDestroyEntities,
|
|
7566
|
+
CPacketDisconnect,
|
|
7567
|
+
CPacketEntityAction,
|
|
7568
|
+
CPacketEntityEquipment,
|
|
7569
|
+
CPacketEntityMetadata,
|
|
7570
|
+
CPacketEntityPositionAndRotation,
|
|
7571
|
+
CPacketEntityRelativePositionAndRotation,
|
|
7572
|
+
CPacketEntityStatus,
|
|
7573
|
+
CPacketEntityVelocity,
|
|
7574
|
+
CPacketExplosion,
|
|
7575
|
+
CPacketJoinGame,
|
|
7576
|
+
CPacketLeaderboard,
|
|
7577
|
+
CPacketLocalStorage,
|
|
7578
|
+
CPacketMessage,
|
|
7579
|
+
CPacketOpenWindow,
|
|
7580
|
+
CPacketParticles,
|
|
7581
|
+
CPacketPlayerList,
|
|
7582
|
+
CPacketPlayerPosition,
|
|
7583
|
+
CPacketPlayerPosLook,
|
|
7584
|
+
CPacketPlayerReconciliation,
|
|
7585
|
+
CPacketPong,
|
|
7586
|
+
CPacketRespawn,
|
|
7587
|
+
CPacketScoreboard,
|
|
7588
|
+
CPacketServerInfo,
|
|
7589
|
+
CPacketSetSlot,
|
|
7590
|
+
CPacketSignEditorOpen,
|
|
7591
|
+
CPacketSoundEffect,
|
|
7592
|
+
CPacketSpawnEntity,
|
|
7593
|
+
CPacketSpawnPlayer,
|
|
7594
|
+
CPacketTabComplete,
|
|
7595
|
+
CPacketTitle,
|
|
7596
|
+
CPacketUpdate,
|
|
7597
|
+
CPacketUpdateHealth,
|
|
7598
|
+
CPacketUpdateLeaderboard,
|
|
7599
|
+
CPacketUpdateScoreboard,
|
|
7600
|
+
CPacketUpdateSign,
|
|
7601
|
+
CPacketUpdateStatus,
|
|
7602
|
+
CPacketWindowItems,
|
|
7603
|
+
CPacketWindowProperty,
|
|
7604
|
+
CPacketUseBed,
|
|
7605
|
+
CPacketQueueNext,
|
|
7606
|
+
CPacketSpawnExperienceOrb,
|
|
7607
|
+
CPacketSetExperience,
|
|
7608
|
+
CPacketOpenShop,
|
|
7609
|
+
CPacketShopProperties,
|
|
7610
|
+
CPacketEntityProperties,
|
|
7611
|
+
CPacketEntityEffect,
|
|
7612
|
+
CPacketRemoveEntityEffect,
|
|
7613
|
+
CPacketUpdateCommandBlock,
|
|
7614
|
+
CPacketEntityAttach,
|
|
7615
|
+
CPacketServerMetadata,
|
|
7616
|
+
CPacketTimeUpdate,
|
|
7617
|
+
ClientBoundCombined
|
|
7618
|
+
};
|
|
7619
|
+
const SPACKET_MAP = {
|
|
7620
|
+
SPacketAdminAction,
|
|
7621
|
+
SPacketAnalytics,
|
|
7622
|
+
SPacketClickWindow,
|
|
7623
|
+
SPacketCloseWindow,
|
|
7624
|
+
SPacketConfirmTransaction,
|
|
7625
|
+
SPacketEnchantItem,
|
|
7626
|
+
SPacketEntityAction,
|
|
7627
|
+
SPacketHeldItemChange,
|
|
7628
|
+
SPacketLoginStart,
|
|
7629
|
+
SPacketMessage,
|
|
7630
|
+
SPacketOpenShop,
|
|
7631
|
+
SPacketPing,
|
|
7632
|
+
SPacketPlayerAbilities,
|
|
7633
|
+
SPacketPlayerAction,
|
|
7634
|
+
SPacketPlayerPosLook,
|
|
7635
|
+
SPacketRespawn,
|
|
7636
|
+
SPacketTabComplete,
|
|
7637
|
+
SPacketUpdateSign,
|
|
7638
|
+
SPacketUseEntity,
|
|
7639
|
+
SPacketUpdateCommandBlock,
|
|
7640
|
+
SPacketQueueNext,
|
|
7641
|
+
SPacketPlayerInput,
|
|
7642
|
+
SPacketBreakBlock,
|
|
7643
|
+
SPacketClick,
|
|
7644
|
+
SPacketCraftItem,
|
|
7645
|
+
SPacketPlaceBlock,
|
|
7646
|
+
SPacketRequestChunk,
|
|
7647
|
+
SPacketUpdateInventory,
|
|
7648
|
+
SPacketUseItem
|
|
7649
|
+
};
|
|
7650
|
+
const NAME_TO_ID = {};
|
|
7651
|
+
const ID_TO_PACKET = {};
|
|
7652
|
+
const ID_TO_NAME = {};
|
|
7653
|
+
function fixedEntries(x) {
|
|
7654
|
+
return Object.entries(x);
|
|
7655
|
+
}
|
|
7656
|
+
let currentId = 0;
|
|
7657
|
+
for (const [i, v] of fixedEntries(CPACKET_MAP)) {
|
|
7658
|
+
NAME_TO_ID[i] = currentId;
|
|
7659
|
+
ID_TO_PACKET[currentId] = v;
|
|
7660
|
+
ID_TO_NAME[currentId] = i;
|
|
7661
|
+
currentId++;
|
|
7662
|
+
}
|
|
7663
|
+
for (const [i, v] of fixedEntries(SPACKET_MAP)) {
|
|
7664
|
+
NAME_TO_ID[i] = currentId;
|
|
7665
|
+
ID_TO_PACKET[currentId] = v;
|
|
7666
|
+
ID_TO_NAME[currentId] = i;
|
|
7667
|
+
currentId++;
|
|
7668
|
+
}
|
|
7669
|
+
//#endregion
|
|
7670
|
+
export { BanPlayer, CPACKET_MAP, CPacketAnimation, CPacketBlockAction, CPacketBlockUpdate, CPacketChangeServers, CPacketChunkData, CPacketCloseWindow, CPacketConfirmTransaction, CPacketDestroyEntities, CPacketDisconnect, CPacketEntityAction, CPacketEntityAttach, CPacketEntityEffect, CPacketEntityEquipment, CPacketEntityMetadata, CPacketEntityPositionAndRotation, CPacketEntityProperties, CPacketEntityRelativePositionAndRotation, CPacketEntityStatus, CPacketEntityVelocity, CPacketExplosion, CPacketJoinGame, CPacketLeaderboard, CPacketLocalStorage, CPacketLocalStorage_Action, CPacketMessage, CPacketOpenShop, CPacketOpenWindow, CPacketParticles, CPacketPlayerList, CPacketPlayerPosLook, CPacketPlayerPosition, CPacketPlayerReconciliation, CPacketPong, CPacketQueueNext, CPacketRemoveEntityEffect, CPacketRespawn, CPacketScoreboard, CPacketServerInfo, CPacketServerMetadata, CPacketSetExperience, CPacketSetSlot, CPacketShopProperties, CPacketShopProperty, CPacketSignEditorOpen, CPacketSoundEffect, CPacketSpawnEntity, CPacketSpawnExperienceOrb, CPacketSpawnPlayer, CPacketTabComplete, CPacketTimeUpdate, CPacketTitle, CPacketUpdate, CPacketUpdateCommandBlock, CPacketUpdateHealth, CPacketUpdateLeaderboard, CPacketUpdateScoreboard, CPacketUpdateSign, CPacketUpdateStatus, CPacketUseBed, CPacketWindowItems, CPacketWindowProperty, ClientBoundCombined, ClientBoundCombined_CPacket, DemotePlayer, Equipment, Equipment_Slot, ID_TO_NAME, ID_TO_PACKET, KickPlayer, NAME_TO_ID, PBAction, PBBlockPos, PBCell, PBCosmetics, PBEnumFacing, PBFloatVector3, PBItemStack, PBModifier, PBSnapshot, PBTileEntity, PBVector3, PBWatchableObject, PlayerData, PlayerPermissionEntry, PromotePlayer, SPACKET_MAP, SPacketAdminAction, SPacketAnalytics, SPacketBreakBlock, SPacketClick, SPacketClickWindow, SPacketCloseWindow, SPacketConfirmTransaction, SPacketCraftItem, SPacketEnchantItem, SPacketEntityAction, SPacketHeldItemChange, SPacketLoginStart, SPacketMessage, SPacketOpenShop, SPacketPing, SPacketPlaceBlock, SPacketPlayerAbilities, SPacketPlayerAction, SPacketPlayerInput, SPacketPlayerPosLook, SPacketQueueNext, SPacketRequestChunk, SPacketRespawn, SPacketTabComplete, SPacketUpdateCommandBlock, SPacketUpdateInventory, SPacketUpdateSign, SPacketUseEntity, SPacketUseEntity_Action, SPacketUseItem, ScoreboardContent, StopServer, UnbanPlayer, UpdateAccessControl, UpdateCheats, UpdateCommandBlock, UpdatePvP, Vector3 };
|