pumpkin-api-py 0.1.0__py3-none-any.whl

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.
Files changed (108) hide show
  1. componentize_py_async_support/__init__.py +570 -0
  2. componentize_py_async_support/futures.py +149 -0
  3. componentize_py_async_support/streams.py +345 -0
  4. componentize_py_runtime.pyi +40 -0
  5. componentize_py_types.py +32 -0
  6. poll_loop.py +440 -0
  7. pumpkin_api/__init__.py +41 -0
  8. pumpkin_api/build.py +68 -0
  9. pumpkin_api/impl.py +355 -0
  10. pumpkin_api/wit/advancement.wit +41 -0
  11. pumpkin_api/wit/attributes.wit +56 -0
  12. pumpkin_api/wit/bedrock-packets.wit +1709 -0
  13. pumpkin_api/wit/biomes.wit +72 -0
  14. pumpkin_api/wit/block-entity.wit +423 -0
  15. pumpkin_api/wit/boss-bar.wit +83 -0
  16. pumpkin_api/wit/command.wit +244 -0
  17. pumpkin_api/wit/common.wit +261 -0
  18. pumpkin_api/wit/context.wit +61 -0
  19. pumpkin_api/wit/damage-types.wit +57 -0
  20. pumpkin_api/wit/data-components.wit +117 -0
  21. pumpkin_api/wit/datapack.wit +54 -0
  22. pumpkin_api/wit/display.wit +171 -0
  23. pumpkin_api/wit/enchantments.wit +102 -0
  24. pumpkin_api/wit/entity-statuses.wit +68 -0
  25. pumpkin_api/wit/entity-types.wit +164 -0
  26. pumpkin_api/wit/entity.wit +1 -0
  27. pumpkin_api/wit/event.wit +2435 -0
  28. pumpkin_api/wit/forms.wit +51 -0
  29. pumpkin_api/wit/game-events.wit +67 -0
  30. pumpkin_api/wit/game-rules.wit +69 -0
  31. pumpkin_api/wit/gui.wit +39 -0
  32. pumpkin_api/wit/i18n.wit +21 -0
  33. pumpkin_api/wit/inventory.wit +78 -0
  34. pumpkin_api/wit/ipc.wit +7 -0
  35. pumpkin_api/wit/item-stack.wit +104 -0
  36. pumpkin_api/wit/java-dialogs.wit +155 -0
  37. pumpkin_api/wit/java-packets.wit +1838 -0
  38. pumpkin_api/wit/log.wit +14 -0
  39. pumpkin_api/wit/metadata.wit +19 -0
  40. pumpkin_api/wit/particles.wit +131 -0
  41. pumpkin_api/wit/permission.wit +46 -0
  42. pumpkin_api/wit/player.wit +1432 -0
  43. pumpkin_api/wit/plugin.wit +121 -0
  44. pumpkin_api/wit/potions.wit +52 -0
  45. pumpkin_api/wit/recipe.wit +88 -0
  46. pumpkin_api/wit/scheduler.wit +24 -0
  47. pumpkin_api/wit/scoreboard.wit +111 -0
  48. pumpkin_api/wit/screens.wit +31 -0
  49. pumpkin_api/wit/server.wit +286 -0
  50. pumpkin_api/wit/sounds.wit +1987 -0
  51. pumpkin_api/wit/statistics.wit +94 -0
  52. pumpkin_api/wit/status-effect.wit +54 -0
  53. pumpkin_api/wit/text.wit +68 -0
  54. pumpkin_api/wit/uuid.wit +16 -0
  55. pumpkin_api/wit/world.wit +1050 -0
  56. pumpkin_api_py-0.1.0.dist-info/METADATA +53 -0
  57. pumpkin_api_py-0.1.0.dist-info/RECORD +108 -0
  58. pumpkin_api_py-0.1.0.dist-info/WHEEL +4 -0
  59. pumpkin_api_py-0.1.0.dist-info/entry_points.txt +2 -0
  60. pumpkin_api_py-0.1.0.dist-info/licenses/LICENSE-APACHE +176 -0
  61. pumpkin_api_py-0.1.0.dist-info/licenses/LICENSE-MIT +21 -0
  62. wit_world/__init__.py +114 -0
  63. wit_world/exports/__init__.py +19 -0
  64. wit_world/exports/metadata.py +24 -0
  65. wit_world/imports/__init__.py +0 -0
  66. wit_world/imports/advancement.py +56 -0
  67. wit_world/imports/attributes.py +66 -0
  68. wit_world/imports/bedrock_packets.py +2413 -0
  69. wit_world/imports/biomes.py +81 -0
  70. wit_world/imports/block_entity.py +1353 -0
  71. wit_world/imports/boss_bar.py +137 -0
  72. wit_world/imports/command.py +705 -0
  73. wit_world/imports/common.py +335 -0
  74. wit_world/imports/context.py +91 -0
  75. wit_world/imports/damage_types.py +66 -0
  76. wit_world/imports/data_components.py +126 -0
  77. wit_world/imports/datapack.py +124 -0
  78. wit_world/imports/display.py +295 -0
  79. wit_world/imports/enchantments.py +129 -0
  80. wit_world/imports/entity_statuses.py +77 -0
  81. wit_world/imports/entity_types.py +173 -0
  82. wit_world/imports/event.py +3558 -0
  83. wit_world/imports/forms.py +98 -0
  84. wit_world/imports/game_events.py +76 -0
  85. wit_world/imports/game_rules.py +88 -0
  86. wit_world/imports/gui.py +81 -0
  87. wit_world/imports/i18n.py +35 -0
  88. wit_world/imports/inventory.py +159 -0
  89. wit_world/imports/ipc.py +20 -0
  90. wit_world/imports/item_stack.py +206 -0
  91. wit_world/imports/java_dialogs.py +208 -0
  92. wit_world/imports/java_packets.py +3560 -0
  93. wit_world/imports/logging.py +30 -0
  94. wit_world/imports/particles.py +140 -0
  95. wit_world/imports/permission.py +71 -0
  96. wit_world/imports/player.py +1753 -0
  97. wit_world/imports/potions.py +61 -0
  98. wit_world/imports/recipe.py +120 -0
  99. wit_world/imports/scheduler.py +44 -0
  100. wit_world/imports/scoreboard.py +167 -0
  101. wit_world/imports/screens.py +40 -0
  102. wit_world/imports/server.py +493 -0
  103. wit_world/imports/sounds.py +1996 -0
  104. wit_world/imports/statistics.py +103 -0
  105. wit_world/imports/status_effect.py +63 -0
  106. wit_world/imports/text.py +156 -0
  107. wit_world/imports/uuid.py +36 -0
  108. wit_world/imports/world.py +1640 -0
@@ -0,0 +1,1709 @@
1
+ package pumpkin:plugin@0.1.0;
2
+
3
+ interface bedrock-packets {
4
+ use uuid.{ uuid };
5
+ record s-actor-event {
6
+ target-runtime-id: s64,
7
+ event-id: actor-event-id,
8
+ data: s32,
9
+ fire-at-position: option<tuple<f64, f64, f64>>,
10
+ }
11
+ enum actor-event-id {
12
+ none,
13
+ jump,
14
+ hurt,
15
+ death,
16
+ start-attacking,
17
+ stop-attacking,
18
+ taming-failed,
19
+ taming-succeeded,
20
+ shake-wetness,
21
+ eat-grass,
22
+ fishhook-bubble,
23
+ fishhook-fish-pos,
24
+ fishhook-hook-time,
25
+ fishhook-tease,
26
+ squid-fleeing,
27
+ zombie-converting,
28
+ play-ambient,
29
+ spawn-alive,
30
+ start-offer-flower,
31
+ stop-offer-flower,
32
+ love-hearts,
33
+ villager-angry,
34
+ villager-happy,
35
+ witch-hat-magic,
36
+ fireworks-explode,
37
+ in-love-hearts,
38
+ silverfish-merge-animation,
39
+ guardian-attack-sound,
40
+ drink-potion,
41
+ throw-potion,
42
+ prime-tnt-cart,
43
+ prime-creeper,
44
+ air-supply,
45
+ deprecated-add-player-levels,
46
+ guardian-mining-fatigue,
47
+ agent-swing-arm,
48
+ dragon-start-death-anim,
49
+ ground-dust,
50
+ shake,
51
+ feed,
52
+ baby-age,
53
+ instant-death,
54
+ notify-trade,
55
+ leash-destroyed,
56
+ caravan-updated,
57
+ talisman-activate,
58
+ deprecated-update-structure-feature,
59
+ player-spawned-mob,
60
+ puke,
61
+ update-stack-size,
62
+ start-swimming,
63
+ balloon-pop,
64
+ treasure-hunt,
65
+ summon-agent,
66
+ finished-charging-item,
67
+ actor-grow-up,
68
+ vibration-detected,
69
+ drink-milk,
70
+ shake-wetness-stop,
71
+ kinetic-damage-dealt,
72
+ hurt-without-receiving-damage,
73
+ }
74
+ enum animate-action {
75
+ no-action,
76
+ swing-arm,
77
+ wake-up,
78
+ critical-hit,
79
+ magic-critical-hit,
80
+ }
81
+ enum actor-swing-source {
82
+ none,
83
+ build,
84
+ mine,
85
+ interact,
86
+ attack,
87
+ use-item,
88
+ throw-item,
89
+ drop-item,
90
+ event,
91
+ }
92
+ record s-animate {
93
+ action: animate-action,
94
+ target-actor-runtime-id: s64,
95
+ data: f32,
96
+ swing-source: option<actor-swing-source>,
97
+ }
98
+ record s-block-pick-request {
99
+ position: tuple<s32, s32, s32>,
100
+ with-data: bool,
101
+ max-slots: u8,
102
+ }
103
+ record s-client-cache-blob-status {
104
+ miss-hashes: list<s64>,
105
+ hit-hashes: list<s64>,
106
+ }
107
+ record s-client-cache-status {
108
+ is-cache-supported: bool,
109
+ }
110
+ record s-command-request {
111
+ command: string,
112
+ origin: command-origin-data,
113
+ is-internal: bool,
114
+ version: string,
115
+ }
116
+ record command-origin-data {
117
+ r-type: string,
118
+ uuid: uuid,
119
+ request-id: string,
120
+ player-id: s64,
121
+ }
122
+ record s-container-close {
123
+ container-id: u8,
124
+ container-type: u8,
125
+ server-initiated-close: bool,
126
+ }
127
+ record s-emote {
128
+ actor-runtime-id: s64,
129
+ emote-id: string,
130
+ emote-length-ticks: s32,
131
+ xuid: string,
132
+ platform-id: string,
133
+ %flags: u8,
134
+ }
135
+ record s-emote-list {
136
+ runtime-id: s64,
137
+ emote-piece-ids: list<uuid>,
138
+ }
139
+ record s-interact {
140
+ action: action,
141
+ target-runtime-id: s64,
142
+ position: option<tuple<f64, f64, f64>>,
143
+ }
144
+ enum action {
145
+ invalid,
146
+ stop-riding,
147
+ interact-update,
148
+ npc-open,
149
+ open-inventory,
150
+ }
151
+ variant inventory-action-source {
152
+ container,
153
+ %world,
154
+ creative,
155
+ todo,
156
+ unknown(s32),
157
+ }
158
+ variant transaction-data {
159
+ normal(string),
160
+ mismatch(string),
161
+ use-item(use-item-transaction-data),
162
+ use-item-on-entity(use-item-on-entity-transaction-data),
163
+ release-item(release-item-transaction-data),
164
+ }
165
+ record legacy-set-item-slot {
166
+ container-id: u8,
167
+ slots: list<u8>,
168
+ }
169
+ record inventory-action {
170
+ source-type: s32,
171
+ window-id: option<s32>,
172
+ source-flags: option<s32>,
173
+ inventory-slot: s32,
174
+ old-item: network-item-descriptor,
175
+ new-item: network-item-descriptor,
176
+ }
177
+ record use-item-transaction-data {
178
+ action-type: s32,
179
+ trigger-type: u8,
180
+ block-position: tuple<s32, s32, s32>,
181
+ block-face: u8,
182
+ hot-bar-slot: s32,
183
+ item-in-hand: network-item-descriptor,
184
+ player-position: tuple<f64, f64, f64>,
185
+ click-position: tuple<f64, f64, f64>,
186
+ block-runtime-id: s32,
187
+ client-prediction: u8,
188
+ client-cooldown-state: u8,
189
+ }
190
+ record use-item-on-entity-transaction-data {
191
+ target-entity-runtime-id: s64,
192
+ action-type: s32,
193
+ hot-bar-slot: s32,
194
+ item-in-hand: network-item-descriptor,
195
+ player-position: tuple<f64, f64, f64>,
196
+ click-position: tuple<f64, f64, f64>,
197
+ }
198
+ record release-item-transaction-data {
199
+ action-type: s32,
200
+ hot-bar-slot: s32,
201
+ item-in-hand: network-item-descriptor,
202
+ head-position: tuple<f64, f64, f64>,
203
+ }
204
+ record s-inventory-transaction {
205
+ legacy-request-id: s32,
206
+ legacy-set-item-slots: list<legacy-set-item-slot>,
207
+ has-value: bool,
208
+ actions: list<inventory-action>,
209
+ transaction-type: s32,
210
+ transaction-data: transaction-data,
211
+ }
212
+ record item-stack-request-slot-info {
213
+ container-name: full-container-name,
214
+ slot-id: u8,
215
+ stack-id: s32,
216
+ }
217
+ record stack-request-item {
218
+ identifier: option<string>,
219
+ metadata-value: s32,
220
+ count: s32,
221
+ block-runtime-id: s32,
222
+ extra-data: list<u8>,
223
+ }
224
+ record item-stack-request-action-take {
225
+ count: u8,
226
+ source: item-stack-request-slot-info,
227
+ destination: item-stack-request-slot-info,
228
+ }
229
+ record item-stack-request-action-place {
230
+ count: u8,
231
+ source: item-stack-request-slot-info,
232
+ destination: item-stack-request-slot-info,
233
+ }
234
+ record item-stack-request-action-swap {
235
+ slot1: item-stack-request-slot-info,
236
+ slot2: item-stack-request-slot-info,
237
+ }
238
+ record item-stack-request-action-drop {
239
+ count: u8,
240
+ source: item-stack-request-slot-info,
241
+ randomly: bool,
242
+ }
243
+ record item-stack-request-action-destroy {
244
+ count: u8,
245
+ source: item-stack-request-slot-info,
246
+ }
247
+ record item-stack-request-action-consume {
248
+ count: u8,
249
+ source: item-stack-request-slot-info,
250
+ }
251
+ record item-stack-request-action-create {
252
+ result-index: u8,
253
+ }
254
+ record item-stack-request-action-beacon-payment {
255
+ primary-effect-id: s32,
256
+ secondary-effect-id: s32,
257
+ }
258
+ record item-stack-request-action-mine-block {
259
+ hotbar-slot: s32,
260
+ predicted-durability: s32,
261
+ stack-id: s32,
262
+ }
263
+ record item-stack-request-action-craft-recipe {
264
+ recipe-id: s32,
265
+ repetitions: u8,
266
+ }
267
+ record item-stack-request-action-craft-recipe-auto {
268
+ recipe-id: s32,
269
+ repetitions: u8,
270
+ }
271
+ record item-stack-request-action-craft-creative {
272
+ creative-item-id: s32,
273
+ repetitions: u8,
274
+ }
275
+ record item-stack-request-action-optional {
276
+ recipe-id: s32,
277
+ filter-string-index: s32,
278
+ }
279
+ record item-stack-request-action-grindstone {
280
+ recipe-id: s32,
281
+ repair-cost: s32,
282
+ repetitions: u8,
283
+ }
284
+ record item-stack-request-action-loom {
285
+ pattern-id: string,
286
+ repetitions: u8,
287
+ }
288
+ record item-stack-request-action-craft-results-deprecated {
289
+ result-items: list<stack-request-item>,
290
+ times-crafted: u8,
291
+ }
292
+ variant item-stack-request-action {
293
+ take(item-stack-request-action-take),
294
+ place(item-stack-request-action-place),
295
+ swap(item-stack-request-action-swap),
296
+ drop(item-stack-request-action-drop),
297
+ destroy(item-stack-request-action-destroy),
298
+ consume(item-stack-request-action-consume),
299
+ create(item-stack-request-action-create),
300
+ lab-table-combine,
301
+ beacon-payment(item-stack-request-action-beacon-payment),
302
+ mine-block(item-stack-request-action-mine-block),
303
+ craft-recipe(item-stack-request-action-craft-recipe),
304
+ craft-recipe-auto(item-stack-request-action-craft-recipe-auto),
305
+ craft-creative(item-stack-request-action-craft-creative),
306
+ optional(item-stack-request-action-optional),
307
+ grindstone(item-stack-request-action-grindstone),
308
+ loom(item-stack-request-action-loom),
309
+ craft-non-implemented,
310
+ craft-results-deprecated(item-stack-request-action-craft-results-deprecated),
311
+ }
312
+ record item-stack-request {
313
+ request-id: s32,
314
+ actions: list<item-stack-request-action>,
315
+ filter-strings: list<string>,
316
+ filter-cause: s32,
317
+ }
318
+ record s-item-stack-request {
319
+ requests: list<item-stack-request>,
320
+ }
321
+ record s-loading-screen {
322
+ loading-screen-packet-type: loading-screen-packet-type,
323
+ loading-screen-id: option<s32>,
324
+ }
325
+ enum loading-screen-packet-type {
326
+ start-loading-screen,
327
+ end-loading-screen,
328
+ }
329
+ record s-login {
330
+ protocol-version: s32,
331
+ jwt: list<u8>,
332
+ raw-token: list<u8>,
333
+ }
334
+ record skin-animation {
335
+ frames: f64,
336
+ image: string,
337
+ image-height: s32,
338
+ image-width: s32,
339
+ animation-type: s32,
340
+ animation-expression: s32,
341
+ }
342
+ record persona-piece {
343
+ is-default: bool,
344
+ pack-id: string,
345
+ piece-id: string,
346
+ piece-type: string,
347
+ product-id: string,
348
+ }
349
+ record persona-piece-tint-colour {
350
+ colours: list<string>,
351
+ piece-type: string,
352
+ }
353
+ record client-data {
354
+ client-random-id: s64,
355
+ device-os: s32,
356
+ device-id: string,
357
+ game-version: string,
358
+ language-code: string,
359
+ current-input-mode: s32,
360
+ default-input-mode: s32,
361
+ ui-profile: s32,
362
+ server-address: string,
363
+ device-model: string,
364
+ gui-scale: s32,
365
+ client-is-editor-capable: bool,
366
+ client-editor-connection-intent: s32,
367
+ max-view-distance: s32,
368
+ memory-tier: s32,
369
+ platform-type: s32,
370
+ graphics-mode: s32,
371
+ compatible-with-client-side-chunk-gen: bool,
372
+ platform-offline-id: string,
373
+ platform-online-id: string,
374
+ platform-user-id: string,
375
+ self-signed-id: string,
376
+ play-fab-id: string,
377
+ third-party-name: string,
378
+ third-party-name-only: bool,
379
+ skin-id: string,
380
+ skin-data: string,
381
+ skin-image-height: s32,
382
+ skin-image-width: s32,
383
+ skin-colour: string,
384
+ arm-size: string,
385
+ persona-skin: bool,
386
+ premium-skin: bool,
387
+ trusted-skin: bool,
388
+ override-skin: bool,
389
+ cape-data: string,
390
+ cape-id: string,
391
+ cape-image-height: s32,
392
+ cape-image-width: s32,
393
+ cape-on-classic-skin: bool,
394
+ skin-geometry: string,
395
+ skin-geometry-version: string,
396
+ skin-resource-patch: string,
397
+ animated-image-data: list<skin-animation>,
398
+ skin-animation-data: string,
399
+ persona-pieces: list<persona-piece>,
400
+ piece-tint-colours: list<persona-piece-tint-colour>,
401
+ }
402
+ record s-mob-equipment {
403
+ entity-runtime-id: s64,
404
+ item: network-item-stack-descriptor,
405
+ slot: u8,
406
+ selected-slot: u8,
407
+ container-id: u8,
408
+ }
409
+ record s-modal-form-response {
410
+ form-id: s32,
411
+ json-response: option<string>,
412
+ form-cancel-reason: option<u8>,
413
+ }
414
+ record s-packet-violation-warning {
415
+ violation-type: s32,
416
+ violation-severity: s32,
417
+ violation-packet-id: s32,
418
+ violation-context: string,
419
+ }
420
+ record s-player-action {
421
+ player-runtime-id: s64,
422
+ action: player-action-type,
423
+ block-position: tuple<s32, s32, s32>,
424
+ result-pos: tuple<s32, s32, s32>,
425
+ face: s32,
426
+ }
427
+ enum player-action-type {
428
+ unknown,
429
+ start-destroy-block,
430
+ abort-destroy-block,
431
+ stop-destroy-block,
432
+ get-updated-block,
433
+ drop-item,
434
+ start-sleeping,
435
+ stop-sleeping,
436
+ respawn,
437
+ start-jump,
438
+ start-sprinting,
439
+ stop-sprinting,
440
+ start-sneaking,
441
+ stop-sneaking,
442
+ creative-destroy-block,
443
+ change-dimension-ack,
444
+ start-gliding,
445
+ stop-gliding,
446
+ deny-destroy-block,
447
+ crack-block,
448
+ change-skin,
449
+ updated-enchanting-seed,
450
+ start-swimming,
451
+ stop-swimming,
452
+ start-spin-attack,
453
+ stop-spin-attack,
454
+ interact-with-block,
455
+ predict-destroy-block,
456
+ continue-destroy-block,
457
+ start-item-use-on,
458
+ stop-item-use-on,
459
+ handled-teleport,
460
+ missed-swing,
461
+ start-crawling,
462
+ stop-crawling,
463
+ start-flying,
464
+ stop-flying,
465
+ client-ack-server-data,
466
+ start-using-item,
467
+ internal-update,
468
+ count,
469
+ }
470
+ record s-player-auth-input {
471
+ pitch: f32,
472
+ yaw: f32,
473
+ position: tuple<f64, f64, f64>,
474
+ move-vec: tuple<f64, f64>,
475
+ head-yaw: f32,
476
+ input-data: list<s64>,
477
+ input-mode: s32,
478
+ play-mode: s32,
479
+ interaction-model: s32,
480
+ interact-pitch: f32,
481
+ interact-yaw: f32,
482
+ tick: s64,
483
+ delta: tuple<f64, f64, f64>,
484
+ block-actions: option<list<player-block-action>>,
485
+ item-interaction: option<player-inventory-action>,
486
+ item-stack-request: option<item-stack-request>,
487
+ vehicle-rotation: option<tuple<f64, f64>>,
488
+ vehicle-unique-id: option<s64>,
489
+ analog-move: tuple<f64, f64>,
490
+ camera-orientation: tuple<f64, f64, f64>,
491
+ raw-move: tuple<f64, f64>,
492
+ }
493
+ record player-inventory-action {
494
+ legacy-request-id: s32,
495
+ legacy-slots: list<legacy-set-item-slot>,
496
+ actions: list<inventory-action>,
497
+ transaction: player-use-item-transaction-data,
498
+ }
499
+ record player-use-item-transaction-data {
500
+ action-type: s32,
501
+ trigger-type: u8,
502
+ block-position: tuple<s32, s32, s32>,
503
+ block-face: u8,
504
+ hot-bar-slot: s32,
505
+ item-in-hand: network-item-descriptor,
506
+ player-position: tuple<f64, f64, f64>,
507
+ click-position: tuple<f64, f64, f64>,
508
+ block-runtime-id: s32,
509
+ client-prediction: u8,
510
+ client-cooldown-state: u8,
511
+ }
512
+ record player-block-action {
513
+ action: s32,
514
+ block-pos: tuple<s32, s32, s32>,
515
+ face: s32,
516
+ }
517
+ enum input-mode {
518
+ mouse,
519
+ touch,
520
+ game-pad,
521
+ motion-controller,
522
+ }
523
+ enum play-mode {
524
+ normal,
525
+ teaser,
526
+ screen,
527
+ exit-level,
528
+ num-modes,
529
+ }
530
+ enum interaction-model {
531
+ touch,
532
+ crosshair,
533
+ classic,
534
+ }
535
+ enum input-data {
536
+ ascend,
537
+ descend,
538
+ north-jump,
539
+ jump-down,
540
+ sprint-down,
541
+ change-height,
542
+ jumping,
543
+ auto-jumping-in-water,
544
+ sneaking,
545
+ sneak-down,
546
+ up,
547
+ down,
548
+ left,
549
+ right,
550
+ up-left,
551
+ up-right,
552
+ want-up,
553
+ want-down,
554
+ want-down-slow,
555
+ want-up-slow,
556
+ sprinting,
557
+ ascend-block,
558
+ descend-block,
559
+ sneak-toggle-down,
560
+ persist-sneak,
561
+ start-sprinting,
562
+ stop-sprinting,
563
+ start-sneaking,
564
+ stop-sneaking,
565
+ start-swimming,
566
+ stop-swimming,
567
+ start-jumping,
568
+ start-gliding,
569
+ stop-gliding,
570
+ perform-item-interaction,
571
+ perform-block-actions,
572
+ perform-item-stack-request,
573
+ handled-teleport,
574
+ emoting,
575
+ missed-swing,
576
+ start-crawling,
577
+ stop-crawling,
578
+ start-flying,
579
+ stop-flying,
580
+ client-ack-server-data,
581
+ client-predicted-vehicle,
582
+ paddling-left,
583
+ paddling-right,
584
+ block-breaking-delay-enabled,
585
+ horizontal-collision,
586
+ vertical-collision,
587
+ down-left,
588
+ down-right,
589
+ start-using-item,
590
+ camera-relative-movement-enabled,
591
+ rot-controlled-by-move-direction,
592
+ start-spin-attack,
593
+ stop-spin-attack,
594
+ is-hotbar-touch-only,
595
+ jump-released-raw,
596
+ jump-pressed-raw,
597
+ jump-current-raw,
598
+ sneak-released-raw,
599
+ sneak-pressed-raw,
600
+ sneak-current-raw,
601
+ internal-update,
602
+ }
603
+ record s-player-hotbar {
604
+ selected-slot: s32,
605
+ container-id: u8,
606
+ should-select-slot: bool,
607
+ }
608
+ variant ability-value {
609
+ %bool(bool),
610
+ float(f32),
611
+ }
612
+ record s-request-ability {
613
+ ability: s32,
614
+ value: ability-value,
615
+ }
616
+ record s-request-chunk-radius {
617
+ chunk-radius: s32,
618
+ max-chunk-radius: u8,
619
+ }
620
+ record s-request-network-settings {
621
+ client-network-version: s32,
622
+ }
623
+ record s-resource-pack-client-response {
624
+ response: u8,
625
+ download-size: s32,
626
+ pack-ids: list<string>,
627
+ }
628
+ record s-respawn {
629
+ position: tuple<f64, f64, f64>,
630
+ state: respawn-state,
631
+ player-runtime-id: s64,
632
+ }
633
+ enum respawn-state {
634
+ searching-for-spawn,
635
+ ready-to-spawn,
636
+ client-ready-to-spawn,
637
+ }
638
+ record s-set-local-player-as-initialized {
639
+ player-id: s64,
640
+ }
641
+ record s-set-player-inventory-options {
642
+ left-inventory-tab: s32,
643
+ right-inventory-tab: s32,
644
+ filtering: bool,
645
+ layout-inv: s32,
646
+ layout-craft: s32,
647
+ }
648
+ record s-text {
649
+ needs-translation: bool,
650
+ r-type: text-packet-type,
651
+ source-name: string,
652
+ message: string,
653
+ parameters: list<string>,
654
+ xuid: string,
655
+ platform-chat-id: string,
656
+ filtered-message: option<string>,
657
+ }
658
+ enum text-packet-type {
659
+ raw,
660
+ chat,
661
+ translation,
662
+ popup,
663
+ jukebox-popup,
664
+ tip,
665
+ system,
666
+ whisper,
667
+ announcement,
668
+ json-whisper,
669
+ json,
670
+ json-announcement,
671
+ }
672
+ record c-add-actor {
673
+ target-actor-id: s64,
674
+ target-runtime-id: s64,
675
+ actor-type: string,
676
+ position: tuple<f64, f64, f64>,
677
+ velocity: tuple<f64, f64, f64>,
678
+ rotation: tuple<f64, f64>,
679
+ y-head-rotation: f32,
680
+ y-body-rotation: f32,
681
+ attributes-list: list<synced-attribute>,
682
+ actor-data: string,
683
+ synced-properties: property-sync-data,
684
+ actor-links: list<actor-link>,
685
+ }
686
+ record synced-attribute {
687
+ attribute-name: string,
688
+ min-value: f32,
689
+ current-value: f32,
690
+ max-value: f32,
691
+ }
692
+ record c-add-item-actor {
693
+ target-actor-id: s64,
694
+ target-runtime-id: s64,
695
+ item: item-stack-wrapper,
696
+ position: tuple<f64, f64, f64>,
697
+ velocity: tuple<f64, f64, f64>,
698
+ entity-data: string,
699
+ is-from-fishing: bool,
700
+ }
701
+ record c-add-player {
702
+ uuid: uuid,
703
+ player-name: string,
704
+ target-runtime-id: s64,
705
+ platform-chat-id: string,
706
+ position: tuple<f64, f64, f64>,
707
+ velocity: tuple<f64, f64, f64>,
708
+ rotation: tuple<f64, f64>,
709
+ y-head-rotation: f32,
710
+ carried-item: network-item-stack-descriptor,
711
+ player-game-type: game-type,
712
+ entity-data: string,
713
+ synced-properties: property-sync-data,
714
+ abilities-data: serialized-abilities-data,
715
+ actor-links: list<actor-link>,
716
+ device-id: string,
717
+ build-platform: build-platform,
718
+ }
719
+ record c-available-commands {
720
+ enum-values: list<string>,
721
+ chained-subcommand-values: list<string>,
722
+ post-fixes: list<string>,
723
+ enum-data: list<enum-data>,
724
+ chained-subcommand-data: list<chained-subcommand-data>,
725
+ commands: list<command-data>,
726
+ soft-enums: list<soft-enum-data>,
727
+ constraints: list<constrained-value-data>,
728
+ }
729
+ record enum-data {
730
+ name: string,
731
+ values: list<s32>,
732
+ }
733
+ record chained-subcommand-data {
734
+ name: string,
735
+ subcommand-values: list<chained-subcommand-relationship>,
736
+ }
737
+ record chained-subcommand-relationship {
738
+ index: s32,
739
+ value: s32,
740
+ }
741
+ record command-data {
742
+ name: string,
743
+ description: string,
744
+ %flags: s32,
745
+ permission-level: command-permission-level,
746
+ alias-enum: s32,
747
+ command-data-chained-subcommand-indexes: list<s32>,
748
+ overloads: list<overload-data>,
749
+ }
750
+ record overload-data {
751
+ is-chaining: bool,
752
+ parameter-data: list<param-data>,
753
+ }
754
+ record param-data {
755
+ name: string,
756
+ parse-symbol: s32,
757
+ is-optional: bool,
758
+ options: u8,
759
+ }
760
+ record soft-enum-data {
761
+ enum-name: string,
762
+ enum-options: list<string>,
763
+ }
764
+ record constrained-value-data {
765
+ enum-value-symbol: s32,
766
+ enum-symbol: s32,
767
+ constraint-indices: list<u8>,
768
+ }
769
+ record c-block-actor-data {
770
+ block-position: tuple<s32, s32, s32>,
771
+ actor-data-tags: string,
772
+ }
773
+ record c-block-event {
774
+ block-position: tuple<s32, s32, s32>,
775
+ event-type: s32,
776
+ event-value: s32,
777
+ }
778
+ record c-boss-event {
779
+ boss-entity-id: s64,
780
+ player-entity-id: s64,
781
+ event-type: u8,
782
+ title: string,
783
+ filtered-title: string,
784
+ health-percentage: f32,
785
+ color: u8,
786
+ overlay: u8,
787
+ }
788
+ record c-change-dimension {
789
+ dimension-id: s32,
790
+ position: tuple<f64, f64, f64>,
791
+ respawn: bool,
792
+ loading-screen-id: option<s32>,
793
+ }
794
+ record c-chunk-radius-updated {
795
+ chunk-radius: s32,
796
+ }
797
+ record missing-blob-data {
798
+ blob-id: s64,
799
+ blob-data: list<u8>,
800
+ }
801
+ record c-client-cache-miss-response {
802
+ missing-blobs: list<missing-blob-data>,
803
+ }
804
+ enum build-platform {
805
+ unknown,
806
+ google,
807
+ ios,
808
+ osx,
809
+ amazon,
810
+ gear-vr,
811
+ uwp,
812
+ win32,
813
+ dedicated,
814
+ tv-os,
815
+ sony,
816
+ nx,
817
+ xbox,
818
+ windows-phone,
819
+ linux,
820
+ }
821
+ enum game-type {
822
+ unknown,
823
+ survival,
824
+ creative,
825
+ adventure,
826
+ default,
827
+ spectator,
828
+ }
829
+ record serialized-abilities-data {
830
+ target-player-raw-id: s64,
831
+ player-permissions: player-permission-level,
832
+ command-permissions: command-permission-level,
833
+ layers: list<serialized-abilities-data-serialized-layer>,
834
+ }
835
+ enum player-permission-level {
836
+ visitor,
837
+ member,
838
+ operator,
839
+ custom,
840
+ }
841
+ enum command-permission-level {
842
+ any,
843
+ game-directors,
844
+ admin,
845
+ host,
846
+ owner,
847
+ internal,
848
+ }
849
+ record serialized-abilities-data-serialized-layer {
850
+ serialized-layer: s32,
851
+ abilities-set: s32,
852
+ ability-value: s32,
853
+ fly-speed: f32,
854
+ vertical-fly-speed: f32,
855
+ walk-speed: f32,
856
+ }
857
+ record actor-link {
858
+ ridden-unique-id: s64,
859
+ rider-unique-id: s64,
860
+ link-type: u8,
861
+ immediate: bool,
862
+ rider-initiated: bool,
863
+ vehicle-angular-velocity: f32,
864
+ }
865
+ record c-container-open {
866
+ container-id: u8,
867
+ container-type: u8,
868
+ position: tuple<s32, s32, s32>,
869
+ target-entity-id: s64,
870
+ }
871
+ record c-correct-player-move-prediction {
872
+ prediction-type: u8,
873
+ pos: tuple<f64, f64, f64>,
874
+ pos-delta: tuple<f64, f64, f64>,
875
+ rotation: tuple<f64, f64>,
876
+ vehicle-angular-velocity: option<f32>,
877
+ on-ground: bool,
878
+ tick: s64,
879
+ }
880
+ record item-descriptor-count {
881
+ item-identifier: string,
882
+ metadata-value: s32,
883
+ count: s32,
884
+ }
885
+ record recipe-unlock-requirement {
886
+ context: s32,
887
+ }
888
+ record bedrock-shapeless-recipe {
889
+ recipe-id: string,
890
+ input: list<item-descriptor-count>,
891
+ output: list<network-item-descriptor>,
892
+ uuid: uuid,
893
+ block: string,
894
+ priority: s32,
895
+ unlock-requirement: recipe-unlock-requirement,
896
+ recipe-network-id: s32,
897
+ }
898
+ record bedrock-shaped-recipe {
899
+ recipe-id: string,
900
+ width: s32,
901
+ height: s32,
902
+ input: list<item-descriptor-count>,
903
+ output: list<network-item-descriptor>,
904
+ uuid: uuid,
905
+ block: string,
906
+ priority: s32,
907
+ assume-symmetry: bool,
908
+ unlock-requirement: recipe-unlock-requirement,
909
+ recipe-network-id: s32,
910
+ }
911
+ variant bedrock-recipe {
912
+ shapeless(bedrock-shapeless-recipe),
913
+ shaped(bedrock-shaped-recipe),
914
+ }
915
+ record c-crafting-data {
916
+ recipes: list<bedrock-recipe>,
917
+ clean-recipes: bool,
918
+ }
919
+ record c-creative-content {
920
+ groups: list<creative-group-info-payload>,
921
+ entries: list<creative-item-entry-payload>,
922
+ }
923
+ enum creative-category {
924
+ all,
925
+ construction,
926
+ nature,
927
+ equipment,
928
+ items,
929
+ item-command-only,
930
+ undefined,
931
+ }
932
+ record creative-group-info-payload {
933
+ creative-category: creative-category,
934
+ name: string,
935
+ group-icon-item: network-item-descriptor,
936
+ }
937
+ record creative-item-entry-payload {
938
+ id: s32,
939
+ item: network-item-descriptor,
940
+ group-index: s32,
941
+ }
942
+ record c-disconnect {
943
+ reason: s32,
944
+ skip-message: bool,
945
+ message: string,
946
+ filtered-message: string,
947
+ }
948
+ record c-gamerules-changed {
949
+ rule-data: list<game-rule>,
950
+ }
951
+ record game-rule {
952
+ rule-name: string,
953
+ rule-can-be-modified: bool,
954
+ rule-value: rule-value,
955
+ }
956
+ enum rule-value {
957
+ null,
958
+ }
959
+ record c-inventory-content {
960
+ container-id: s32,
961
+ slots: list<network-item-stack-descriptor>,
962
+ full-container-name: full-container-name,
963
+ storage-item: network-item-stack-descriptor,
964
+ }
965
+ record c-inventory-slot {
966
+ container-id: s32,
967
+ slot: s32,
968
+ full-container-name: option<full-container-name>,
969
+ storage-item: option<network-item-stack-descriptor>,
970
+ item: network-item-stack-descriptor,
971
+ }
972
+ record c-item-registry {
973
+ items: list<item-data>,
974
+ }
975
+ record item-data {
976
+ item-name: string,
977
+ item-id: s32,
978
+ is-component-based: bool,
979
+ item-version: s32,
980
+ component-data: list<u8>,
981
+ }
982
+ record item-stack-response-slot-info {
983
+ requested-slot: u8,
984
+ slot: u8,
985
+ amount: u8,
986
+ item-stack-net-id: s32,
987
+ custom-name: string,
988
+ filtered-custom-name: string,
989
+ durability-correction: s32,
990
+ }
991
+ record item-stack-response-container-info {
992
+ full-container-name: full-container-name,
993
+ slots: list<item-stack-response-slot-info>,
994
+ }
995
+ record item-stack-response-info {
996
+ %result: u8,
997
+ client-request-id: s32,
998
+ containers: list<item-stack-response-container-info>,
999
+ }
1000
+ record c-item-stack-response {
1001
+ responses: list<item-stack-response-info>,
1002
+ }
1003
+ record c-level-chunk {
1004
+ dimension: s32,
1005
+ cache-enabled: bool,
1006
+ chunk: list<u8>,
1007
+ block-actors: list<string>,
1008
+ }
1009
+ record c-level-event {
1010
+ event-id: s32,
1011
+ position: tuple<f64, f64, f64>,
1012
+ data: s32,
1013
+ }
1014
+ enum level-event {
1015
+ particles-destroy-block,
1016
+ block-start-break,
1017
+ block-stop-break,
1018
+ block-update-break,
1019
+ }
1020
+ record c-level-sound-event {
1021
+ sound-event: string,
1022
+ position: tuple<f64, f64, f64>,
1023
+ data: s32,
1024
+ actor-identifier: string,
1025
+ is-baby: bool,
1026
+ is-global: bool,
1027
+ actor-unique-id: s64,
1028
+ fire-at-position: option<tuple<f64, f64, f64>>,
1029
+ }
1030
+ record c-mob-effect {
1031
+ target-runtime-id: s64,
1032
+ event-id: u8,
1033
+ effect-id: s32,
1034
+ effect-amplifier: s32,
1035
+ show-particles: bool,
1036
+ effect-duration-ticks: s32,
1037
+ tick: s64,
1038
+ ambient: bool,
1039
+ }
1040
+ record c-mob-equipment {
1041
+ target-runtime-id: s64,
1042
+ item: network-item-stack-descriptor,
1043
+ slot: u8,
1044
+ selected-slot: u8,
1045
+ container-id: u8,
1046
+ }
1047
+ record c-modal-form-request {
1048
+ form-id: s32,
1049
+ form-ui-json: string,
1050
+ }
1051
+ record c-move-actor-absolute {
1052
+ actor-runtime-id: s64,
1053
+ header: u8,
1054
+ position: tuple<f64, f64, f64>,
1055
+ rotation-x: u8,
1056
+ rotation-y: u8,
1057
+ rotation-y-head: u8,
1058
+ }
1059
+ record c-move-actor-delta {
1060
+ entity-runtime-id: s64,
1061
+ %flags: s32,
1062
+ x: f32,
1063
+ y: f32,
1064
+ z: f32,
1065
+ pitch: u8,
1066
+ yaw: u8,
1067
+ head-yaw: u8,
1068
+ }
1069
+ record c-move-player {
1070
+ player-runtime-id: s64,
1071
+ position: tuple<f64, f64, f64>,
1072
+ pitch: f32,
1073
+ yaw: f32,
1074
+ head-yaw: f32,
1075
+ mode: u8,
1076
+ on-ground: bool,
1077
+ riding-runtime-id: s64,
1078
+ teleport-cause: s32,
1079
+ teleport-source-entity-type: s32,
1080
+ tick: s64,
1081
+ }
1082
+ record c-network-chunk-publisher-update {
1083
+ pos-for-view: tuple<s32, s32, s32>,
1084
+ new-radius: s32,
1085
+ server-build-chunk-list: list<tuple<f64, f64>>,
1086
+ }
1087
+ record c-network-settings {
1088
+ compression-threshold: s32,
1089
+ compression-algorithm: s32,
1090
+ client-throttle-enabled: bool,
1091
+ client-throttle-threshold: u8,
1092
+ client-throttle-scalar: f32,
1093
+ }
1094
+ enum c-play-status {
1095
+ login-success,
1096
+ outdated-client,
1097
+ outdated-server,
1098
+ player-spawn,
1099
+ invalid-tenant,
1100
+ edition-mismatch-edu-to-vanilla,
1101
+ edition-mismatch-vanilla-to-edu,
1102
+ server-full-sub-client,
1103
+ editor-mismatch-editor-to-vanilla,
1104
+ editor-mismatch-vanilla-to-editor,
1105
+ }
1106
+ record c-player-hotbar {
1107
+ selected-slot: s32,
1108
+ container-id: u8,
1109
+ should-select-slot: bool,
1110
+ }
1111
+ record c-player-list {
1112
+ action: u8,
1113
+ entries: list<player-list-entry>,
1114
+ }
1115
+ record player-list-entry {
1116
+ uuid: uuid,
1117
+ entity-unique-id: s64,
1118
+ username: string,
1119
+ xuid: string,
1120
+ platform-chat-id: string,
1121
+ build-platform: build-platform,
1122
+ skin: skin,
1123
+ is-teacher: bool,
1124
+ is-host: bool,
1125
+ is-sub-client: bool,
1126
+ player-color: list<u8>,
1127
+ }
1128
+ record skin {
1129
+ skin-id: string,
1130
+ play-fab-id: string,
1131
+ resource-patch: list<u8>,
1132
+ image-width: s32,
1133
+ image-height: s32,
1134
+ skin-data: list<u8>,
1135
+ animations: list<skin-animation>,
1136
+ cape-width: s32,
1137
+ cape-height: s32,
1138
+ cape-data: list<u8>,
1139
+ geometry-data: list<u8>,
1140
+ animation-data: list<u8>,
1141
+ geometry-data-engine-version: list<u8>,
1142
+ cape-id: string,
1143
+ full-id: string,
1144
+ arm-size: string,
1145
+ skin-color: string,
1146
+ persona-pieces: list<persona-piece>,
1147
+ piece-tint-colors: list<piece-tint-color>,
1148
+ is-premium: bool,
1149
+ is-persona: bool,
1150
+ persona-cape-on-classic: bool,
1151
+ is-primary-user: bool,
1152
+ override-appearance: bool,
1153
+ is-trusted: bool,
1154
+ profile-hash: string,
1155
+ }
1156
+ record piece-tint-color {
1157
+ piece-type: string,
1158
+ colors: list<s32>,
1159
+ }
1160
+ record c-remove-actor {
1161
+ target-actor-id: s64,
1162
+ }
1163
+ record c-remove-objective {
1164
+ objective-name: string,
1165
+ }
1166
+ record pack-instance-id {
1167
+ pack-id: string,
1168
+ version: string,
1169
+ sub-pack-name: string,
1170
+ }
1171
+ record c-resource-pack-stack-packet {
1172
+ texture-pack-required: bool,
1173
+ texture-pack-list: list<pack-instance-id>,
1174
+ base-game-version: string,
1175
+ experiments: experiments,
1176
+ include-editor-packs: bool,
1177
+ }
1178
+ record pack-info-data {
1179
+ pack-id-version: pack-id-version,
1180
+ pack-size: s64,
1181
+ content-key: string,
1182
+ subpack-name: string,
1183
+ content-identity: string,
1184
+ has-scripts: bool,
1185
+ is-addon-pack: bool,
1186
+ is-ray-tracing-capable: bool,
1187
+ cdn-url: string,
1188
+ }
1189
+ record c-resource-packs-info {
1190
+ resource-pack-required: bool,
1191
+ has-addon-packs: bool,
1192
+ has-scripts: bool,
1193
+ force-disable-vibrant-visuals: bool,
1194
+ world-template-id-and-version: pack-id-version,
1195
+ resource-packs: list<pack-info-data>,
1196
+ }
1197
+ record pack-id-version {
1198
+ pack-uuid: uuid,
1199
+ pack-version: string,
1200
+ }
1201
+ record c-set-actor-data {
1202
+ target-runtime-id: s64,
1203
+ actor-data: string,
1204
+ synced-properties: property-sync-data,
1205
+ tick: s64,
1206
+ }
1207
+ variant metadata-value {
1208
+ byte(u8),
1209
+ short(s32),
1210
+ int(s32),
1211
+ float(f32),
1212
+ %string(string),
1213
+ compound-tag,
1214
+ item-pos(tuple<s32, s32, s32>),
1215
+ int64(s64),
1216
+ vec3(tuple<f64, f64, f64>),
1217
+ }
1218
+ record property-sync-data {
1219
+ int-entries-list: list<tuple<s32, s32>>,
1220
+ float-entries-list: list<tuple<s32, f32>>,
1221
+ }
1222
+ record c-set-actor-link {
1223
+ link: actor-link,
1224
+ }
1225
+ record c-set-actor-motion {
1226
+ target-runtime-id: s64,
1227
+ motion: tuple<f64, f64, f64>,
1228
+ tick: s64,
1229
+ }
1230
+ record c-set-difficulty {
1231
+ difficulty: s32,
1232
+ }
1233
+ record c-set-display-objective {
1234
+ display-slot-name: string,
1235
+ objective-name: string,
1236
+ objective-display-name: string,
1237
+ criteria-name: string,
1238
+ sort-order: s32,
1239
+ }
1240
+ record c-set-health {
1241
+ health: s32,
1242
+ }
1243
+ record c-set-player-game-type {
1244
+ player-game-type: game-type,
1245
+ }
1246
+ record c-set-score {
1247
+ action: s32,
1248
+ entries: list<score-entry>,
1249
+ }
1250
+ record score-entry {
1251
+ scoreboard-id: s64,
1252
+ objective-name: string,
1253
+ score: s32,
1254
+ entry-type: s32,
1255
+ entity-unique-id: s64,
1256
+ custom-name: string,
1257
+ }
1258
+ record c-set-spawn-position {
1259
+ spawn-position-type: spawn-position-type,
1260
+ block-position: tuple<s32, s32, s32>,
1261
+ dimension-type: s32,
1262
+ spawn-block-pos: tuple<s32, s32, s32>,
1263
+ }
1264
+ enum spawn-position-type {
1265
+ player-respawn,
1266
+ world-respawn,
1267
+ }
1268
+ record c-set-time {
1269
+ time: s32,
1270
+ }
1271
+ record c-set-title {
1272
+ title-type: title-type,
1273
+ title-text: string,
1274
+ fade-in-time: s32,
1275
+ stay-time: s32,
1276
+ fade-out-time: s32,
1277
+ xuid: string,
1278
+ platform-online-id: string,
1279
+ filtered-title-message: string,
1280
+ }
1281
+ enum title-type {
1282
+ clear,
1283
+ reset,
1284
+ title,
1285
+ subtitle,
1286
+ actionbar,
1287
+ times,
1288
+ title-text-object,
1289
+ subtitle-text-object,
1290
+ actionbar-text-object,
1291
+ }
1292
+ record c-show-credits {
1293
+ player-runtime-id: s64,
1294
+ credits-state: s32,
1295
+ }
1296
+ record c-start-game {
1297
+ entity-id: s64,
1298
+ runtime-entity-id: s64,
1299
+ player-gamemode: game-type,
1300
+ position: tuple<f64, f64, f64>,
1301
+ pitch: f32,
1302
+ yaw: f32,
1303
+ level-settings: level-settings,
1304
+ level-id: string,
1305
+ level-name: string,
1306
+ premium-world-template-id: string,
1307
+ is-trial: bool,
1308
+ rewind-history-size: s32,
1309
+ server-authoritative-block-breaking: bool,
1310
+ current-level-time: s64,
1311
+ enchantment-seed: s32,
1312
+ block-properties-size: s32,
1313
+ multiplayer-correlation-id: string,
1314
+ enable-itemstack-net-manager: bool,
1315
+ server-version: string,
1316
+ compound-id: u8,
1317
+ compound-len: s32,
1318
+ compound-end: u8,
1319
+ block-registry-checksum: s64,
1320
+ world-template-id: uuid,
1321
+ enable-clientside-generation: bool,
1322
+ blocknetwork-ids-are-hashed: bool,
1323
+ server-auth-sounds: bool,
1324
+ server-join-information: option<server-join-information>,
1325
+ telemetry: server-telemetry-data,
1326
+ }
1327
+ record server-join-information {
1328
+ gathering: option<gathering-join-info>,
1329
+ store-entry-point: option<store-entry-point-info>,
1330
+ presence: option<presence-info>,
1331
+ }
1332
+ record gathering-join-info {
1333
+ experience-id: uuid,
1334
+ experience-name: string,
1335
+ experience-world-id: uuid,
1336
+ experience-world-name: string,
1337
+ creator-id: string,
1338
+ unknown-uuid-1: uuid,
1339
+ unknown-uuid-2: uuid,
1340
+ server-id: string,
1341
+ }
1342
+ record store-entry-point-info {
1343
+ store-id: string,
1344
+ store-name: string,
1345
+ }
1346
+ record presence-info {
1347
+ experience-name: string,
1348
+ world-name: string,
1349
+ }
1350
+ record server-telemetry-data {
1351
+ server-id: string,
1352
+ scenario-id: string,
1353
+ world-id: string,
1354
+ owner-id: string,
1355
+ }
1356
+ record level-settings {
1357
+ seed: s64,
1358
+ spawn-biome-type: s32,
1359
+ custom-biome-name: string,
1360
+ dimension: s32,
1361
+ generator-type: s32,
1362
+ world-gamemode: game-type,
1363
+ hardcore: bool,
1364
+ difficulty: s32,
1365
+ spawn-position: tuple<s32, s32, s32>,
1366
+ has-achievements-disabled: bool,
1367
+ editor-world-type: s32,
1368
+ is-created-in-editor: bool,
1369
+ is-exported-from-editor: bool,
1370
+ day-cycle-stop-time: s32,
1371
+ education-edition-offer: s32,
1372
+ has-education-features-enabled: bool,
1373
+ education-product-id: string,
1374
+ rain-level: f32,
1375
+ lightning-level: f32,
1376
+ has-confirmed-platform-locked-content: bool,
1377
+ was-multiplayer-intended: bool,
1378
+ was-lan-broadcasting-intended: bool,
1379
+ xbox-live-broadcast-setting: game-publish-setting,
1380
+ platform-broadcast-setting: game-publish-setting,
1381
+ commands-enabled: bool,
1382
+ is-texture-packs-required: bool,
1383
+ rule-data: list<game-rule>,
1384
+ experiments: experiments,
1385
+ bonus-chest: bool,
1386
+ has-start-with-map-enabled: bool,
1387
+ permission-level: u8,
1388
+ server-simulation-distance: s32,
1389
+ has-locked-behavior-pack: bool,
1390
+ has-locked-resource-pack: bool,
1391
+ is-from-locked-world-template: bool,
1392
+ is-using-msa-gamertags-only: bool,
1393
+ is-from-world-template: bool,
1394
+ is-world-template-option-locked: bool,
1395
+ is-only-spawning-v1-villagers: bool,
1396
+ is-disabling-personas: bool,
1397
+ is-disabling-custom-skins: bool,
1398
+ emote-chat-muted: bool,
1399
+ game-version: string,
1400
+ limited-world-width: s32,
1401
+ limited-world-height: s32,
1402
+ new-nether: bool,
1403
+ edu-shared-uri-button-name: string,
1404
+ edu-shared-uri-link-uri: string,
1405
+ override-force-experimental-gameplay-has-value: bool,
1406
+ chat-restriction-level: u8,
1407
+ disable-player-interactions: bool,
1408
+ server-editor-connection-policy: s32,
1409
+ allow-anonymous-block-drops-in-editor-worlds: bool,
1410
+ }
1411
+ record experiments {
1412
+ toggles: list<experiment-toggle>,
1413
+ experiments-ever-toggled: bool,
1414
+ }
1415
+ record experiment-toggle {
1416
+ name: string,
1417
+ enabled: bool,
1418
+ }
1419
+ enum game-publish-setting {
1420
+ no-multi-play,
1421
+ invite-only,
1422
+ friends-only,
1423
+ friends-of-friends,
1424
+ public,
1425
+ }
1426
+ record gg {
1427
+ name: string,
1428
+ id: u8,
1429
+ len: s32,
1430
+ end: u8,
1431
+ }
1432
+ record c-take-item-actor {
1433
+ item-runtime-id: s64,
1434
+ actor-runtime-id: s64,
1435
+ }
1436
+ record c-transfer {
1437
+ server-address: string,
1438
+ server-port: s32,
1439
+ reload-world: bool,
1440
+ }
1441
+ record c-update-abilities {
1442
+ data: serialized-abilities-data,
1443
+ }
1444
+ enum ability {
1445
+ build,
1446
+ mine,
1447
+ doors-and-switches,
1448
+ open-containers,
1449
+ attack-players,
1450
+ attack-mobs,
1451
+ operator-commands,
1452
+ teleport,
1453
+ invulnerable,
1454
+ flying,
1455
+ may-fly,
1456
+ instabuild,
1457
+ lightning,
1458
+ fly-speed,
1459
+ walk-speed,
1460
+ muted,
1461
+ world-builder,
1462
+ no-clip,
1463
+ privileged-builder,
1464
+ vertical-fly-speed,
1465
+ ability-count,
1466
+ }
1467
+ record c-update-attributes {
1468
+ target-runtime-id: s64,
1469
+ attribute-list: list<attribute-data>,
1470
+ tick: s64,
1471
+ }
1472
+ record attribute-data {
1473
+ min-value: f32,
1474
+ max-value: f32,
1475
+ current-value: f32,
1476
+ default-min-value: f32,
1477
+ default-max-value: f32,
1478
+ default-value: f32,
1479
+ name: string,
1480
+ modifiers: list<attribute-modifier>,
1481
+ }
1482
+ record attribute-modifier {
1483
+ id: string,
1484
+ name: string,
1485
+ amount: f32,
1486
+ operation: s32,
1487
+ operand: s32,
1488
+ is-serializable: bool,
1489
+ }
1490
+ record c-update-block {
1491
+ block-position: tuple<s32, s32, s32>,
1492
+ block-runtime-id: s32,
1493
+ %flags: s32,
1494
+ layer: s32,
1495
+ }
1496
+ record c-update-trade {
1497
+ container-id: u8,
1498
+ r-type: u8,
1499
+ size: s32,
1500
+ trader-tier: s32,
1501
+ entity-unique-id: s64,
1502
+ last-trading-player: s64,
1503
+ display-name: string,
1504
+ use-new-trade-screen: bool,
1505
+ using-economy-trade: bool,
1506
+ data: string,
1507
+ }
1508
+ record network-item-descriptor {
1509
+ id: s32,
1510
+ stack-size: s32,
1511
+ aux-value: s32,
1512
+ block-runtime-id: s32,
1513
+ nbt-data: string,
1514
+ place-on-blocks: list<string>,
1515
+ destroy-blocks: list<string>,
1516
+ shield-blocking-tick: s64,
1517
+ }
1518
+ record item-stack-wrapper {
1519
+ id: s32,
1520
+ stack-size: s32,
1521
+ aux-value: s32,
1522
+ block-runtime-id: s32,
1523
+ nbt-data: string,
1524
+ place-on-blocks: list<string>,
1525
+ destroy-blocks: list<string>,
1526
+ shield-blocking-tick: s64,
1527
+ net-id: option<s32>,
1528
+ }
1529
+ record network-item-stack-descriptor {
1530
+ id: s32,
1531
+ stack-size: s32,
1532
+ aux-value: s32,
1533
+ block-runtime-id: s32,
1534
+ extra-data: list<u8>,
1535
+ net-id: option<s32>,
1536
+ }
1537
+ record full-container-name {
1538
+ container-name: container-name,
1539
+ dynamic-id: option<s32>,
1540
+ }
1541
+ enum container-name {
1542
+ anvil-input,
1543
+ anvil-material,
1544
+ anvil-result-preview,
1545
+ smithing-table-input,
1546
+ smithing-table-material,
1547
+ smithing-table-result-preview,
1548
+ armor,
1549
+ level-entity,
1550
+ beacon-payment,
1551
+ brewing-stand-input,
1552
+ brewing-stand-result,
1553
+ brewing-stand-fuel,
1554
+ combined-hot-bar-and-inventory,
1555
+ crafting-input,
1556
+ crafting-output-preview,
1557
+ recipe-construction,
1558
+ recipe-nature,
1559
+ recipe-items,
1560
+ recipe-search,
1561
+ recipe-search-bar,
1562
+ recipe-equipment,
1563
+ recipe-book,
1564
+ enchanting-input,
1565
+ enchanting-material,
1566
+ furnace-fuel,
1567
+ furnace-ingredient,
1568
+ furnace-result,
1569
+ horse-equip,
1570
+ hot-bar,
1571
+ inventory,
1572
+ shulker-box,
1573
+ trade-ingredient1,
1574
+ trade-ingredient2,
1575
+ trade-result-preview,
1576
+ offhand,
1577
+ compound-creator-input,
1578
+ compound-creator-output-preview,
1579
+ element-constructor-output-preview,
1580
+ material-reducer-input,
1581
+ material-reducer-output,
1582
+ lab-table-input,
1583
+ loom-input,
1584
+ loom-dye,
1585
+ loom-material,
1586
+ loom-result-preview,
1587
+ blast-furnace-ingredient,
1588
+ smoker-ingredient,
1589
+ trade2-ingredient1,
1590
+ trade2-ingredient2,
1591
+ trade2-result-preview,
1592
+ grindstone-input,
1593
+ grindstone-additional,
1594
+ grindstone-result-preview,
1595
+ stonecutter-input,
1596
+ stonecutter-result-preview,
1597
+ cartography-input,
1598
+ cartography-additional,
1599
+ cartography-result-preview,
1600
+ barrel,
1601
+ cursor,
1602
+ created-output,
1603
+ smithing-table-template,
1604
+ crafter-level-entity,
1605
+ dynamic,
1606
+ recipe-food,
1607
+ recipe-blocks,
1608
+ recipe-furnace-items,
1609
+ }
1610
+ record network-item-stack {
1611
+ id: s32,
1612
+ count: s32,
1613
+ aux-value: s32,
1614
+ block-runtime-id: s32,
1615
+ extra-data: list<u8>,
1616
+ }
1617
+ variant serverbound-packet {
1618
+ s-actor-event(s-actor-event),
1619
+ s-animate(s-animate),
1620
+ s-block-pick-request(s-block-pick-request),
1621
+ s-client-cache-blob-status(s-client-cache-blob-status),
1622
+ s-client-cache-status(s-client-cache-status),
1623
+ s-command-request(s-command-request),
1624
+ s-container-close(s-container-close),
1625
+ s-emote(s-emote),
1626
+ s-emote-list(s-emote-list),
1627
+ s-interact(s-interact),
1628
+ s-inventory-transaction(s-inventory-transaction),
1629
+ s-item-stack-request(s-item-stack-request),
1630
+ s-loading-screen(s-loading-screen),
1631
+ s-login(s-login),
1632
+ s-mob-equipment(s-mob-equipment),
1633
+ s-modal-form-response(s-modal-form-response),
1634
+ s-packet-violation-warning(s-packet-violation-warning),
1635
+ s-player-action(s-player-action),
1636
+ s-player-auth-input(s-player-auth-input),
1637
+ s-player-hotbar(s-player-hotbar),
1638
+ s-request-ability(s-request-ability),
1639
+ s-request-chunk-radius(s-request-chunk-radius),
1640
+ s-request-network-settings(s-request-network-settings),
1641
+ s-resource-pack-client-response(s-resource-pack-client-response),
1642
+ s-respawn(s-respawn),
1643
+ s-set-local-player-as-initialized(s-set-local-player-as-initialized),
1644
+ s-set-player-inventory-options(s-set-player-inventory-options),
1645
+ s-text(s-text),
1646
+ unknown,
1647
+ }
1648
+ variant clientbound-packet {
1649
+ c-add-actor(c-add-actor),
1650
+ c-add-item-actor(c-add-item-actor),
1651
+ c-add-player(c-add-player),
1652
+ c-available-commands(c-available-commands),
1653
+ c-biome-definition-list,
1654
+ c-block-actor-data(c-block-actor-data),
1655
+ c-block-event(c-block-event),
1656
+ c-boss-event(c-boss-event),
1657
+ c-change-dimension(c-change-dimension),
1658
+ c-chunk-radius-updated(c-chunk-radius-updated),
1659
+ c-client-cache-miss-response(c-client-cache-miss-response),
1660
+ c-container-open(c-container-open),
1661
+ c-correct-player-move-prediction(c-correct-player-move-prediction),
1662
+ c-crafting-data(c-crafting-data),
1663
+ c-creative-content(c-creative-content),
1664
+ c-disconnect(c-disconnect),
1665
+ c-gamerules-changed(c-gamerules-changed),
1666
+ c-inventory-content(c-inventory-content),
1667
+ c-inventory-slot(c-inventory-slot),
1668
+ c-item-registry(c-item-registry),
1669
+ c-item-stack-response(c-item-stack-response),
1670
+ c-level-chunk(c-level-chunk),
1671
+ c-level-event(c-level-event),
1672
+ c-level-sound-event(c-level-sound-event),
1673
+ c-mob-effect(c-mob-effect),
1674
+ c-mob-equipment(c-mob-equipment),
1675
+ c-modal-form-request(c-modal-form-request),
1676
+ c-move-actor-absolute(c-move-actor-absolute),
1677
+ c-move-actor-delta(c-move-actor-delta),
1678
+ c-move-player(c-move-player),
1679
+ c-network-chunk-publisher-update(c-network-chunk-publisher-update),
1680
+ c-network-settings(c-network-settings),
1681
+ c-play-status(c-play-status),
1682
+ c-player-hotbar(c-player-hotbar),
1683
+ c-player-list(c-player-list),
1684
+ c-remove-actor(c-remove-actor),
1685
+ c-remove-objective(c-remove-objective),
1686
+ c-resource-pack-stack-packet(c-resource-pack-stack-packet),
1687
+ c-resource-packs-info(c-resource-packs-info),
1688
+ c-set-actor-data(c-set-actor-data),
1689
+ c-set-actor-link(c-set-actor-link),
1690
+ c-set-actor-motion(c-set-actor-motion),
1691
+ c-set-difficulty(c-set-difficulty),
1692
+ c-set-display-objective(c-set-display-objective),
1693
+ c-set-health(c-set-health),
1694
+ c-set-player-game-type(c-set-player-game-type),
1695
+ c-set-score(c-set-score),
1696
+ c-set-spawn-position(c-set-spawn-position),
1697
+ c-set-time(c-set-time),
1698
+ c-set-title(c-set-title),
1699
+ c-show-credits(c-show-credits),
1700
+ c-start-game(c-start-game),
1701
+ c-take-item-actor(c-take-item-actor),
1702
+ c-transfer(c-transfer),
1703
+ c-update-abilities(c-update-abilities),
1704
+ c-update-attributes(c-update-attributes),
1705
+ c-update-block(c-update-block),
1706
+ c-update-trade(c-update-trade),
1707
+ unknown,
1708
+ }
1709
+ }