bedrock-portal-nethernet 2.0.7 → 2.0.8

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 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.111";
12
+ export declare const CURRENT_VERSION = "1.21.124";
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.111';
6
+ exports.CURRENT_VERSION = '1.21.124';
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: 844,
25
+ protocolVersion: 860,
26
26
  };
@@ -97,7 +97,7 @@ declare const _default: {
97
97
  };
98
98
  })[];
99
99
  })[])[];
100
- GameRulesVarint: (string | ({
100
+ GameRuleVarint: (string | ({
101
101
  name: string;
102
102
  type: string;
103
103
  } | {
@@ -2399,6 +2399,20 @@ declare const _default: {
2399
2399
  };
2400
2400
  })[])[];
2401
2401
  })[])[];
2402
+ CameraRotationOption: (string | {
2403
+ name: string;
2404
+ type: string;
2405
+ }[])[];
2406
+ CameraSplineInstruction: (string | ({
2407
+ name: string;
2408
+ type: string;
2409
+ } | {
2410
+ name: string;
2411
+ type: (string | {
2412
+ countType: string;
2413
+ type: string;
2414
+ })[];
2415
+ })[])[];
2402
2416
  DisconnectFailReason: (string | {
2403
2417
  type: string;
2404
2418
  mappings: {
@@ -2661,6 +2675,16 @@ declare const _default: {
2661
2675
  name: string;
2662
2676
  type: string;
2663
2677
  })[])[];
2678
+ BiomeReplacementData: (string | ({
2679
+ name: string;
2680
+ type: string;
2681
+ } | {
2682
+ name: string;
2683
+ type: (string | {
2684
+ countType: string;
2685
+ type: string;
2686
+ })[];
2687
+ })[])[];
2664
2688
  EaseType: (string | {
2665
2689
  type: string;
2666
2690
  mappings: {
@@ -2698,6 +2722,23 @@ declare const _default: {
2698
2722
  31: string;
2699
2723
  };
2700
2724
  })[];
2725
+ CameraSplineEaseType: (string | {
2726
+ type: string;
2727
+ mappings: {
2728
+ 0: string;
2729
+ 1: string;
2730
+ };
2731
+ })[];
2732
+ ParameterKeyframeValue: (string | {
2733
+ name: string;
2734
+ type: string;
2735
+ }[])[];
2736
+ GraphicsOverrideParameterType: (string | {
2737
+ type: string;
2738
+ mappings: {
2739
+ 0: string;
2740
+ };
2741
+ })[];
2701
2742
  mcpe_packet: (string | ({
2702
2743
  name: string;
2703
2744
  type: (string | {
@@ -2926,6 +2967,7 @@ declare const _default: {
2926
2967
  327: string;
2927
2968
  328: string;
2928
2969
  329: string;
2970
+ 331: string;
2929
2971
  };
2930
2972
  })[];
2931
2973
  } | {
@@ -3156,6 +3198,7 @@ declare const _default: {
3156
3198
  clientbound_controls_scheme: string;
3157
3199
  server_script_debug_drawer: string;
3158
3200
  serverbound_pack_setting_change: string;
3201
+ graphics_override_parameter: string;
3159
3202
  };
3160
3203
  })[];
3161
3204
  })[])[];
@@ -3769,6 +3812,7 @@ declare const _default: {
3769
3812
  76: string;
3770
3813
  77: string;
3771
3814
  78: string;
3815
+ 79: string;
3772
3816
  };
3773
3817
  })[];
3774
3818
  })[])[];
@@ -6284,6 +6328,16 @@ declare const _default: {
6284
6328
  })[];
6285
6329
  })[])[];
6286
6330
  })[])[];
6331
+ packet_graphics_override_parameter: (string | ({
6332
+ name: string;
6333
+ type: (string | {
6334
+ countType: string;
6335
+ type: string;
6336
+ })[];
6337
+ } | {
6338
+ name: string;
6339
+ type: string;
6340
+ })[])[];
6287
6341
  };
6288
6342
  };
6289
6343
  export default _default;
package/dist/protocol.js CHANGED
@@ -215,7 +215,7 @@ exports.default = {
215
215
  },
216
216
  ],
217
217
  ],
218
- GameRulesVarint: [
218
+ GameRuleVarint: [
219
219
  'container',
220
220
  [
221
221
  {
@@ -4742,6 +4742,62 @@ exports.default = {
4742
4742
  },
4743
4743
  ],
4744
4744
  ],
4745
+ CameraRotationOption: [
4746
+ 'container',
4747
+ [
4748
+ {
4749
+ name: 'value',
4750
+ type: 'vec3f',
4751
+ },
4752
+ {
4753
+ name: 'time',
4754
+ type: 'lf32',
4755
+ },
4756
+ ],
4757
+ ],
4758
+ CameraSplineInstruction: [
4759
+ 'container',
4760
+ [
4761
+ {
4762
+ name: 'total_time',
4763
+ type: 'lf32',
4764
+ },
4765
+ {
4766
+ name: 'ease_type',
4767
+ type: 'CameraSplineEaseType',
4768
+ },
4769
+ {
4770
+ name: 'curve',
4771
+ type: [
4772
+ 'array',
4773
+ {
4774
+ countType: 'varint',
4775
+ type: 'vec3f',
4776
+ },
4777
+ ],
4778
+ },
4779
+ {
4780
+ name: 'progress_key_frames',
4781
+ type: [
4782
+ 'array',
4783
+ {
4784
+ countType: 'varint',
4785
+ type: 'vec2f',
4786
+ },
4787
+ ],
4788
+ },
4789
+ {
4790
+ name: 'rotation_options',
4791
+ type: [
4792
+ 'array',
4793
+ {
4794
+ countType: 'varint',
4795
+ type: 'CameraRotationOption',
4796
+ },
4797
+ ],
4798
+ },
4799
+ ],
4800
+ ],
4745
4801
  DisconnectFailReason: [
4746
4802
  'mapper',
4747
4803
  {
@@ -5069,6 +5125,19 @@ exports.default = {
5069
5125
  ],
5070
5126
  ],
5071
5127
  },
5128
+ {
5129
+ name: 'replacements_data',
5130
+ type: [
5131
+ 'option',
5132
+ [
5133
+ 'array',
5134
+ {
5135
+ countType: 'varint',
5136
+ type: 'BiomeReplacementData',
5137
+ },
5138
+ ],
5139
+ ],
5140
+ },
5072
5141
  ],
5073
5142
  ],
5074
5143
  BiomeClimate: [
@@ -5531,6 +5600,41 @@ exports.default = {
5531
5600
  },
5532
5601
  ],
5533
5602
  ],
5603
+ BiomeReplacementData: [
5604
+ 'container',
5605
+ [
5606
+ {
5607
+ name: 'biome',
5608
+ type: 'li16',
5609
+ },
5610
+ {
5611
+ name: 'dimension',
5612
+ type: 'li16',
5613
+ },
5614
+ {
5615
+ name: 'target_biomes',
5616
+ type: [
5617
+ 'array',
5618
+ {
5619
+ countType: 'varint',
5620
+ type: 'li16',
5621
+ },
5622
+ ],
5623
+ },
5624
+ {
5625
+ name: 'amount',
5626
+ type: 'lf32',
5627
+ },
5628
+ {
5629
+ name: 'noise_frequency_scale',
5630
+ type: 'lf32',
5631
+ },
5632
+ {
5633
+ name: 'replacement_index',
5634
+ type: 'lu32',
5635
+ },
5636
+ ],
5637
+ ],
5534
5638
  EaseType: [
5535
5639
  'mapper',
5536
5640
  {
@@ -5571,6 +5675,38 @@ exports.default = {
5571
5675
  },
5572
5676
  },
5573
5677
  ],
5678
+ CameraSplineEaseType: [
5679
+ 'mapper',
5680
+ {
5681
+ type: 'u8',
5682
+ mappings: {
5683
+ 0: 'catmull_rom',
5684
+ 1: 'linear',
5685
+ },
5686
+ },
5687
+ ],
5688
+ ParameterKeyframeValue: [
5689
+ 'container',
5690
+ [
5691
+ {
5692
+ name: 'time',
5693
+ type: 'lf32',
5694
+ },
5695
+ {
5696
+ name: 'value',
5697
+ type: 'vec3f',
5698
+ },
5699
+ ],
5700
+ ],
5701
+ GraphicsOverrideParameterType: [
5702
+ 'mapper',
5703
+ {
5704
+ type: 'u8',
5705
+ mappings: {
5706
+ 0: 'sky_zenith_color',
5707
+ },
5708
+ },
5709
+ ],
5574
5710
  mcpe_packet: [
5575
5711
  'container',
5576
5712
  [
@@ -5804,6 +5940,7 @@ exports.default = {
5804
5940
  327: 'clientbound_controls_scheme',
5805
5941
  328: 'server_script_debug_drawer',
5806
5942
  329: 'serverbound_pack_setting_change',
5943
+ 331: 'graphics_override_parameter',
5807
5944
  },
5808
5945
  },
5809
5946
  ],
@@ -6038,6 +6175,7 @@ exports.default = {
6038
6175
  clientbound_controls_scheme: 'packet_clientbound_controls_scheme',
6039
6176
  server_script_debug_drawer: 'packet_server_script_debug_drawer',
6040
6177
  serverbound_pack_setting_change: 'packet_serverbound_pack_setting_change',
6178
+ graphics_override_parameter: 'packet_graphics_override_parameter',
6041
6179
  },
6042
6180
  },
6043
6181
  ],
@@ -7571,6 +7709,7 @@ exports.default = {
7571
7709
  76: 'grow_up',
7572
7710
  77: 'vibration_detected',
7573
7711
  78: 'drink_milk',
7712
+ 79: 'wetness_stop',
7574
7713
  },
7575
7714
  },
7576
7715
  ],
@@ -7937,6 +8076,10 @@ exports.default = {
7937
8076
  name: 'runtime_entity_id',
7938
8077
  type: 'varint64',
7939
8078
  },
8079
+ {
8080
+ name: 'data',
8081
+ type: 'lf32',
8082
+ },
7940
8083
  {
7941
8084
  anon: true,
7942
8085
  type: [
@@ -7948,7 +8091,7 @@ exports.default = {
7948
8091
  'container',
7949
8092
  [
7950
8093
  {
7951
- name: 'boat_rowing_time',
8094
+ name: 'rowing_time',
7952
8095
  type: 'lf32',
7953
8096
  },
7954
8097
  ],
@@ -7957,7 +8100,7 @@ exports.default = {
7957
8100
  'container',
7958
8101
  [
7959
8102
  {
7960
- name: 'boat_rowing_time',
8103
+ name: 'rowing_time',
7961
8104
  type: 'lf32',
7962
8105
  },
7963
8106
  ],
@@ -9769,8 +9912,8 @@ exports.default = {
9769
9912
  'container',
9770
9913
  [
9771
9914
  {
9772
- name: 'offer_id',
9773
- type: 'string',
9915
+ name: 'offer_uuid',
9916
+ type: 'uuid',
9774
9917
  },
9775
9918
  {
9776
9919
  name: 'redirect_type',
@@ -13353,6 +13496,27 @@ exports.default = {
13353
13496
  ],
13354
13497
  ],
13355
13498
  },
13499
+ {
13500
+ name: 'spline',
13501
+ type: [
13502
+ 'option',
13503
+ 'CameraSplineInstruction',
13504
+ ],
13505
+ },
13506
+ {
13507
+ name: 'attach_to_entity',
13508
+ type: [
13509
+ 'option',
13510
+ 'li64',
13511
+ ],
13512
+ },
13513
+ {
13514
+ name: 'detach_from_entity',
13515
+ type: [
13516
+ 'option',
13517
+ 'bool',
13518
+ ],
13519
+ },
13356
13520
  ],
13357
13521
  ],
13358
13522
  packet_compressed_biome_definitions: [
@@ -14378,5 +14542,32 @@ exports.default = {
14378
14542
  },
14379
14543
  ],
14380
14544
  ],
14545
+ packet_graphics_override_parameter: [
14546
+ 'container',
14547
+ [
14548
+ {
14549
+ name: 'values',
14550
+ type: [
14551
+ 'array',
14552
+ {
14553
+ countType: 'varint',
14554
+ type: 'ParameterKeyframeValue',
14555
+ },
14556
+ ],
14557
+ },
14558
+ {
14559
+ name: 'biome_identifier',
14560
+ type: 'string',
14561
+ },
14562
+ {
14563
+ name: 'parameter_type',
14564
+ type: 'GraphicsOverrideParameterType',
14565
+ },
14566
+ {
14567
+ name: 'reset',
14568
+ type: 'bool',
14569
+ },
14570
+ ],
14571
+ ],
14381
14572
  },
14382
14573
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bedrock-portal-nethernet",
3
- "version": "2.0.7",
3
+ "version": "2.0.8",
4
4
  "description": "A simple server implementation for the Bedrock Edition Nethernet protocol",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",