bedrock-portal-nethernet 2.0.0 → 2.0.2
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/options.d.ts +1 -1
- package/dist/options.js +2 -2
- package/dist/protocol.d.ts +267 -31
- package/dist/protocol.js +1178 -286
- package/package.json +1 -1
package/dist/options.d.ts
CHANGED
|
@@ -9,7 +9,7 @@ export type Options = {
|
|
|
9
9
|
compressionThreshold: number;
|
|
10
10
|
protocolVersion: number;
|
|
11
11
|
};
|
|
12
|
-
export declare const CURRENT_VERSION = "1.21.
|
|
12
|
+
export declare const CURRENT_VERSION = "1.21.80";
|
|
13
13
|
export declare const defaultOptions: {
|
|
14
14
|
version: string;
|
|
15
15
|
autoInitPlayer: boolean;
|
package/dist/options.js
CHANGED
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.defaultOptions = exports.CURRENT_VERSION = void 0;
|
|
4
4
|
const framer_1 = require("./transforms/framer");
|
|
5
5
|
// Currently supported verson. Note, clients with newer versions can still connect as long as data is in minecraft-data
|
|
6
|
-
exports.CURRENT_VERSION = '1.21.
|
|
6
|
+
exports.CURRENT_VERSION = '1.21.80';
|
|
7
7
|
exports.defaultOptions = {
|
|
8
8
|
// https://minecraft.wiki/w/Protocol_version#Bedrock_Edition_2
|
|
9
9
|
version: exports.CURRENT_VERSION,
|
|
@@ -22,5 +22,5 @@ exports.defaultOptions = {
|
|
|
22
22
|
// server: If true, only compress if a payload is larger than compressionThreshold
|
|
23
23
|
compressionThreshold: 512,
|
|
24
24
|
// server and client: The protocol version to use
|
|
25
|
-
protocolVersion:
|
|
25
|
+
protocolVersion: 800,
|
|
26
26
|
};
|
package/dist/protocol.d.ts
CHANGED
|
@@ -431,6 +431,8 @@ declare const _default: {
|
|
|
431
431
|
131: string;
|
|
432
432
|
132: string;
|
|
433
433
|
133: string;
|
|
434
|
+
134: string;
|
|
435
|
+
135: string;
|
|
434
436
|
};
|
|
435
437
|
})[];
|
|
436
438
|
} | {
|
|
@@ -456,6 +458,8 @@ declare const _default: {
|
|
|
456
458
|
fields: {
|
|
457
459
|
flags: string;
|
|
458
460
|
flags_extended: string;
|
|
461
|
+
seat_third_person_camera_radius: string;
|
|
462
|
+
seat_camera_relax_distance_smoothing: string;
|
|
459
463
|
};
|
|
460
464
|
default: (string | {
|
|
461
465
|
compareTo: string;
|
|
@@ -2317,6 +2321,18 @@ declare const _default: {
|
|
|
2317
2321
|
};
|
|
2318
2322
|
})[])[];
|
|
2319
2323
|
}[])[])[];
|
|
2324
|
+
} | {
|
|
2325
|
+
name: string;
|
|
2326
|
+
type: (string | (string | {
|
|
2327
|
+
type: string;
|
|
2328
|
+
mappings: {
|
|
2329
|
+
0: string;
|
|
2330
|
+
1: string;
|
|
2331
|
+
2: string;
|
|
2332
|
+
3: string;
|
|
2333
|
+
4: string;
|
|
2334
|
+
};
|
|
2335
|
+
})[])[];
|
|
2320
2336
|
})[])[];
|
|
2321
2337
|
DisconnectFailReason: (string | {
|
|
2322
2338
|
type: string;
|
|
@@ -2455,6 +2471,127 @@ declare const _default: {
|
|
|
2455
2471
|
'-1': string;
|
|
2456
2472
|
};
|
|
2457
2473
|
})[];
|
|
2474
|
+
BiomeDefinition: (string | ({
|
|
2475
|
+
name: string;
|
|
2476
|
+
type: string;
|
|
2477
|
+
} | {
|
|
2478
|
+
name: string;
|
|
2479
|
+
type: (string | (string | {
|
|
2480
|
+
countType: string;
|
|
2481
|
+
type: string;
|
|
2482
|
+
})[])[];
|
|
2483
|
+
})[])[];
|
|
2484
|
+
BiomeChunkGeneration: (string | ({
|
|
2485
|
+
name: string;
|
|
2486
|
+
type: (string | (string | {
|
|
2487
|
+
countType: string;
|
|
2488
|
+
type: string;
|
|
2489
|
+
})[])[];
|
|
2490
|
+
} | {
|
|
2491
|
+
name: string;
|
|
2492
|
+
type: string;
|
|
2493
|
+
})[])[];
|
|
2494
|
+
BiomeClimate: (string | {
|
|
2495
|
+
name: string;
|
|
2496
|
+
type: string;
|
|
2497
|
+
}[])[];
|
|
2498
|
+
BiomeMountainParameters: (string | {
|
|
2499
|
+
name: string;
|
|
2500
|
+
type: string;
|
|
2501
|
+
}[])[];
|
|
2502
|
+
BiomeSurfaceMaterial: (string | {
|
|
2503
|
+
name: string;
|
|
2504
|
+
type: string;
|
|
2505
|
+
}[])[];
|
|
2506
|
+
BiomeMesaSurface: (string | {
|
|
2507
|
+
name: string;
|
|
2508
|
+
type: string;
|
|
2509
|
+
}[])[];
|
|
2510
|
+
BiomeCappedSurface: (string | {
|
|
2511
|
+
name: string;
|
|
2512
|
+
type: (string | {
|
|
2513
|
+
countType: string;
|
|
2514
|
+
type: string;
|
|
2515
|
+
})[];
|
|
2516
|
+
}[])[];
|
|
2517
|
+
BiomeMultiNoiseRules: (string | {
|
|
2518
|
+
name: string;
|
|
2519
|
+
type: string;
|
|
2520
|
+
}[])[];
|
|
2521
|
+
BiomeWeight: (string | {
|
|
2522
|
+
name: string;
|
|
2523
|
+
type: string;
|
|
2524
|
+
}[])[];
|
|
2525
|
+
BiomeTemperatureWeight: (string | {
|
|
2526
|
+
name: string;
|
|
2527
|
+
type: string;
|
|
2528
|
+
}[])[];
|
|
2529
|
+
BiomeConsolidatedFeature: (string | {
|
|
2530
|
+
name: string;
|
|
2531
|
+
type: string;
|
|
2532
|
+
}[])[];
|
|
2533
|
+
BiomeScatterParameter: (string | ({
|
|
2534
|
+
name: string;
|
|
2535
|
+
type: (string | {
|
|
2536
|
+
countType: string;
|
|
2537
|
+
type: string;
|
|
2538
|
+
})[];
|
|
2539
|
+
} | {
|
|
2540
|
+
name: string;
|
|
2541
|
+
type: (string | {
|
|
2542
|
+
type: string;
|
|
2543
|
+
mappings: {
|
|
2544
|
+
0: string;
|
|
2545
|
+
1: string;
|
|
2546
|
+
2: string;
|
|
2547
|
+
3: string;
|
|
2548
|
+
4: string;
|
|
2549
|
+
5: string;
|
|
2550
|
+
};
|
|
2551
|
+
})[];
|
|
2552
|
+
} | {
|
|
2553
|
+
name: string;
|
|
2554
|
+
type: string;
|
|
2555
|
+
})[])[];
|
|
2556
|
+
BiomeCoordinate: (string | ({
|
|
2557
|
+
name: string;
|
|
2558
|
+
type: string;
|
|
2559
|
+
} | {
|
|
2560
|
+
name: string;
|
|
2561
|
+
type: (string | {
|
|
2562
|
+
type: string;
|
|
2563
|
+
mappings: {
|
|
2564
|
+
0: string;
|
|
2565
|
+
1: string;
|
|
2566
|
+
2: string;
|
|
2567
|
+
3: string;
|
|
2568
|
+
4: string;
|
|
2569
|
+
5: string;
|
|
2570
|
+
6: string;
|
|
2571
|
+
};
|
|
2572
|
+
})[];
|
|
2573
|
+
})[])[];
|
|
2574
|
+
BiomeElementData: (string | {
|
|
2575
|
+
name: string;
|
|
2576
|
+
type: string;
|
|
2577
|
+
}[])[];
|
|
2578
|
+
BiomeOverworldRules: (string | {
|
|
2579
|
+
name: string;
|
|
2580
|
+
type: (string | {
|
|
2581
|
+
countType: string;
|
|
2582
|
+
type: string;
|
|
2583
|
+
})[];
|
|
2584
|
+
}[])[];
|
|
2585
|
+
BiomeConditionalTransformation: (string | ({
|
|
2586
|
+
name: string;
|
|
2587
|
+
type: (string | {
|
|
2588
|
+
countType: string;
|
|
2589
|
+
type: string;
|
|
2590
|
+
})[];
|
|
2591
|
+
} | {
|
|
2592
|
+
name: string;
|
|
2593
|
+
type: string;
|
|
2594
|
+
})[])[];
|
|
2458
2595
|
mcpe_packet: (string | ({
|
|
2459
2596
|
name: string;
|
|
2460
2597
|
type: (string | {
|
|
@@ -2604,10 +2741,12 @@ declare const _default: {
|
|
|
2604
2741
|
147: string;
|
|
2605
2742
|
148: string;
|
|
2606
2743
|
149: string;
|
|
2744
|
+
150: string;
|
|
2607
2745
|
151: string;
|
|
2608
2746
|
152: string;
|
|
2609
2747
|
153: string;
|
|
2610
2748
|
154: string;
|
|
2749
|
+
155: string;
|
|
2611
2750
|
156: string;
|
|
2612
2751
|
157: string;
|
|
2613
2752
|
158: string;
|
|
@@ -2674,6 +2813,11 @@ declare const _default: {
|
|
|
2674
2813
|
320: string;
|
|
2675
2814
|
321: string;
|
|
2676
2815
|
322: string;
|
|
2816
|
+
323: string;
|
|
2817
|
+
324: string;
|
|
2818
|
+
325: string;
|
|
2819
|
+
326: string;
|
|
2820
|
+
327: string;
|
|
2677
2821
|
};
|
|
2678
2822
|
})[];
|
|
2679
2823
|
} | {
|
|
@@ -2824,10 +2968,12 @@ declare const _default: {
|
|
|
2824
2968
|
item_stack_request: string;
|
|
2825
2969
|
item_stack_response: string;
|
|
2826
2970
|
player_armor_damage: string;
|
|
2971
|
+
code_builder: string;
|
|
2827
2972
|
update_player_game_type: string;
|
|
2828
2973
|
emote_list: string;
|
|
2829
2974
|
position_tracking_db_request: string;
|
|
2830
2975
|
position_tracking_db_broadcast: string;
|
|
2976
|
+
debug_info: string;
|
|
2831
2977
|
packet_violation_warning: string;
|
|
2832
2978
|
motion_prediction_hints: string;
|
|
2833
2979
|
animate_entity: string;
|
|
@@ -2895,6 +3041,11 @@ declare const _default: {
|
|
|
2895
3041
|
camera_aim_assist_presets: string;
|
|
2896
3042
|
client_camera_aim_assist: string;
|
|
2897
3043
|
client_movement_prediction_sync: string;
|
|
3044
|
+
update_client_options: string;
|
|
3045
|
+
player_video_capture: string;
|
|
3046
|
+
player_update_entity_overrides: string;
|
|
3047
|
+
player_location: string;
|
|
3048
|
+
clientbound_controls_scheme: string;
|
|
2898
3049
|
};
|
|
2899
3050
|
})[];
|
|
2900
3051
|
})[])[];
|
|
@@ -3099,6 +3250,17 @@ declare const _default: {
|
|
|
3099
3250
|
2: string;
|
|
3100
3251
|
};
|
|
3101
3252
|
})[];
|
|
3253
|
+
} | {
|
|
3254
|
+
name: string;
|
|
3255
|
+
type: (string | {
|
|
3256
|
+
type: string;
|
|
3257
|
+
mappings: {
|
|
3258
|
+
0: string;
|
|
3259
|
+
1: string;
|
|
3260
|
+
2: string;
|
|
3261
|
+
3: string;
|
|
3262
|
+
};
|
|
3263
|
+
})[];
|
|
3102
3264
|
})[])[];
|
|
3103
3265
|
packet_add_player: (string | ({
|
|
3104
3266
|
name: string;
|
|
@@ -4624,7 +4786,10 @@ declare const _default: {
|
|
|
4624
4786
|
})[])[];
|
|
4625
4787
|
packet_biome_definition_list: (string | {
|
|
4626
4788
|
name: string;
|
|
4627
|
-
type: string
|
|
4789
|
+
type: (string | {
|
|
4790
|
+
countType: string;
|
|
4791
|
+
type: string;
|
|
4792
|
+
})[];
|
|
4628
4793
|
}[])[];
|
|
4629
4794
|
packet_level_sound_event: (string | {
|
|
4630
4795
|
name: string;
|
|
@@ -5009,6 +5174,10 @@ declare const _default: {
|
|
|
5009
5174
|
body: number;
|
|
5010
5175
|
};
|
|
5011
5176
|
})[];
|
|
5177
|
+
packet_code_builder: (string | {
|
|
5178
|
+
name: string;
|
|
5179
|
+
type: string;
|
|
5180
|
+
}[])[];
|
|
5012
5181
|
packet_update_player_game_type: (string | {
|
|
5013
5182
|
name: string;
|
|
5014
5183
|
type: string;
|
|
@@ -5049,6 +5218,10 @@ declare const _default: {
|
|
|
5049
5218
|
name: string;
|
|
5050
5219
|
type: string;
|
|
5051
5220
|
})[])[];
|
|
5221
|
+
packet_debug_info: (string | {
|
|
5222
|
+
name: string;
|
|
5223
|
+
type: string;
|
|
5224
|
+
}[])[];
|
|
5052
5225
|
packet_packet_violation_warning: (string | ({
|
|
5053
5226
|
name: string;
|
|
5054
5227
|
type: (string | {
|
|
@@ -5848,36 +6021,6 @@ declare const _default: {
|
|
|
5848
6021
|
})[];
|
|
5849
6022
|
}[])[];
|
|
5850
6023
|
packet_camera_aim_assist_presets: (string | ({
|
|
5851
|
-
name: string;
|
|
5852
|
-
type: (string | {
|
|
5853
|
-
countType: string;
|
|
5854
|
-
type: (string | ({
|
|
5855
|
-
name: string;
|
|
5856
|
-
type: string;
|
|
5857
|
-
} | {
|
|
5858
|
-
name: string;
|
|
5859
|
-
type: (string | {
|
|
5860
|
-
countType: string;
|
|
5861
|
-
type: (string | ({
|
|
5862
|
-
name: string;
|
|
5863
|
-
type: string;
|
|
5864
|
-
} | {
|
|
5865
|
-
name: string;
|
|
5866
|
-
type: (string | {
|
|
5867
|
-
name: string;
|
|
5868
|
-
type: (string | {
|
|
5869
|
-
countType: string;
|
|
5870
|
-
type: (string | {
|
|
5871
|
-
name: string;
|
|
5872
|
-
type: string;
|
|
5873
|
-
}[])[];
|
|
5874
|
-
})[];
|
|
5875
|
-
}[])[];
|
|
5876
|
-
})[])[];
|
|
5877
|
-
})[];
|
|
5878
|
-
})[])[];
|
|
5879
|
-
})[];
|
|
5880
|
-
} | {
|
|
5881
6024
|
name: string;
|
|
5882
6025
|
type: (string | {
|
|
5883
6026
|
countType: string;
|
|
@@ -5934,6 +6077,99 @@ declare const _default: {
|
|
|
5934
6077
|
type: string;
|
|
5935
6078
|
}[])[];
|
|
5936
6079
|
})[])[];
|
|
6080
|
+
packet_update_client_options: (string | {
|
|
6081
|
+
name: string;
|
|
6082
|
+
type: (string | (string | {
|
|
6083
|
+
type: string;
|
|
6084
|
+
mappings: {
|
|
6085
|
+
0: string;
|
|
6086
|
+
1: string;
|
|
6087
|
+
2: string;
|
|
6088
|
+
3: string;
|
|
6089
|
+
};
|
|
6090
|
+
})[])[];
|
|
6091
|
+
}[])[];
|
|
6092
|
+
packet_player_video_capture: (string | ({
|
|
6093
|
+
name: string;
|
|
6094
|
+
type: (string | {
|
|
6095
|
+
type: string;
|
|
6096
|
+
mappings: {
|
|
6097
|
+
0: string;
|
|
6098
|
+
1: string;
|
|
6099
|
+
};
|
|
6100
|
+
})[];
|
|
6101
|
+
anon?: undefined;
|
|
6102
|
+
} | {
|
|
6103
|
+
anon: boolean;
|
|
6104
|
+
type: (string | {
|
|
6105
|
+
compareTo: string;
|
|
6106
|
+
fields: {
|
|
6107
|
+
start: (string | {
|
|
6108
|
+
name: string;
|
|
6109
|
+
type: string;
|
|
6110
|
+
}[])[];
|
|
6111
|
+
};
|
|
6112
|
+
})[];
|
|
6113
|
+
name?: undefined;
|
|
6114
|
+
})[])[];
|
|
6115
|
+
packet_player_update_entity_overrides: (string | ({
|
|
6116
|
+
name: string;
|
|
6117
|
+
type: string;
|
|
6118
|
+
} | {
|
|
6119
|
+
name: string;
|
|
6120
|
+
type: (string | {
|
|
6121
|
+
type: string;
|
|
6122
|
+
mappings: {
|
|
6123
|
+
0: string;
|
|
6124
|
+
1: string;
|
|
6125
|
+
2: string;
|
|
6126
|
+
3: string;
|
|
6127
|
+
};
|
|
6128
|
+
})[];
|
|
6129
|
+
} | {
|
|
6130
|
+
name: string;
|
|
6131
|
+
type: (string | {
|
|
6132
|
+
compareTo: string;
|
|
6133
|
+
fields: {
|
|
6134
|
+
set_int: string;
|
|
6135
|
+
set_float: string;
|
|
6136
|
+
};
|
|
6137
|
+
})[];
|
|
6138
|
+
})[])[];
|
|
6139
|
+
packet_player_location: (string | ({
|
|
6140
|
+
name: string;
|
|
6141
|
+
type: (string | {
|
|
6142
|
+
type: string;
|
|
6143
|
+
mappings: {
|
|
6144
|
+
0: string;
|
|
6145
|
+
1: string;
|
|
6146
|
+
};
|
|
6147
|
+
})[];
|
|
6148
|
+
} | {
|
|
6149
|
+
name: string;
|
|
6150
|
+
type: string;
|
|
6151
|
+
} | {
|
|
6152
|
+
name: string;
|
|
6153
|
+
type: (string | {
|
|
6154
|
+
compareTo: string;
|
|
6155
|
+
fields: {
|
|
6156
|
+
coordinates: string;
|
|
6157
|
+
};
|
|
6158
|
+
})[];
|
|
6159
|
+
})[])[];
|
|
6160
|
+
packet_clientbound_controls_scheme: (string | {
|
|
6161
|
+
name: string;
|
|
6162
|
+
type: (string | {
|
|
6163
|
+
type: string;
|
|
6164
|
+
mappings: {
|
|
6165
|
+
0: string;
|
|
6166
|
+
1: string;
|
|
6167
|
+
2: string;
|
|
6168
|
+
3: string;
|
|
6169
|
+
4: string;
|
|
6170
|
+
};
|
|
6171
|
+
})[];
|
|
6172
|
+
}[])[];
|
|
5937
6173
|
};
|
|
5938
6174
|
};
|
|
5939
6175
|
export default _default;
|