bedrock-portal-nethernet 2.5.0 → 2.7.0

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/README.md CHANGED
@@ -1,12 +1,12 @@
1
- # BedrockPortalNethernet
2
- [![NPM version](https://img.shields.io/npm/v/bedrock-portal-nethernet.svg)](http://npmjs.com/package/bedrock-portal-nethernet)
3
- [![Discord](https://img.shields.io/badge/chat-on%20discord-brightgreen.svg)](https://discord.gg/KTyd9HWuBD)
4
-
5
- A simple server implementation for the Bedrock Edition Nethernet protocol used by [BedrockPortal](https://github.com/LucienHH/bedrock-portal). Join our [Discord](https://discord.com/invite/KTyd9HWuBD) for support.
6
-
7
- Based on bedrock-protocol but stripped down to only the necessary components for the Nethernet protocol.
8
-
9
- ## Installation
10
- ```shell
11
- npm install bedrock-portal-nethernet
1
+ # BedrockPortalNethernet
2
+ [![NPM version](https://img.shields.io/npm/v/bedrock-portal-nethernet.svg)](http://npmjs.com/package/bedrock-portal-nethernet)
3
+ [![Discord](https://img.shields.io/badge/chat-on%20discord-brightgreen.svg)](https://discord.gg/KTyd9HWuBD)
4
+
5
+ A simple server implementation for the Bedrock Edition Nethernet protocol used by [BedrockPortal](https://github.com/LucienHH/bedrock-portal). Join our [Discord](https://discord.com/invite/KTyd9HWuBD) for support.
6
+
7
+ Based on bedrock-protocol but stripped down to only the necessary components for the Nethernet protocol.
8
+
9
+ ## Installation
10
+ ```shell
11
+ npm install bedrock-portal-nethernet
12
12
  ```
@@ -5,5 +5,5 @@ export type ServerIdentity = {
5
5
  };
6
6
  export declare function createServerIdentity(): ServerIdentity;
7
7
  export declare function signServerIdentity(sdp: string, identity: ServerIdentity): Promise<string>;
8
- export declare function verifyIdentity(sdp: string): Promise<Buffer<ArrayBufferLike>>;
8
+ export declare function verifyIdentity(sdp: string): Promise<NonSharedBuffer>;
9
9
  export declare function publicKeysEqual(encodedKey: string, expectedKey: Buffer): boolean;
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.26.40";
12
+ export declare const CURRENT_VERSION = "1.26.50";
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.26.40';
6
+ exports.CURRENT_VERSION = '1.26.50';
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: 2168,
25
+ protocolVersion: 2193,
26
26
  };
@@ -561,6 +561,40 @@ declare const _default: {
561
561
  };
562
562
  })[];
563
563
  })[])[];
564
+ PlayerAuthInputTransactionUseItem: (string | ({
565
+ name: string;
566
+ type: (string | {
567
+ type: string;
568
+ mappings: {
569
+ 0: string;
570
+ 1: string;
571
+ 2: string;
572
+ 3: string;
573
+ };
574
+ })[];
575
+ } | {
576
+ name: string;
577
+ type: (string | {
578
+ type: string;
579
+ mappings: {
580
+ 0: string;
581
+ 1: string;
582
+ 2: string;
583
+ };
584
+ })[];
585
+ } | {
586
+ name: string;
587
+ type: string;
588
+ } | {
589
+ name: string;
590
+ type: (string | {
591
+ type: string;
592
+ mappings: {
593
+ 0: string;
594
+ 1: string;
595
+ };
596
+ })[];
597
+ })[])[];
564
598
  TransactionActions: (string | {
565
599
  countType: string;
566
600
  type: (string | ({
@@ -608,7 +642,7 @@ declare const _default: {
608
642
  type: string;
609
643
  } | {
610
644
  name: string;
611
- type: (string | (string | {
645
+ type: (string | {
612
646
  type: string;
613
647
  mappings: {
614
648
  0: string;
@@ -617,7 +651,7 @@ declare const _default: {
617
651
  3: string;
618
652
  4: string;
619
653
  };
620
- })[])[];
654
+ })[];
621
655
  } | {
622
656
  name: string;
623
657
  type: (string | {
@@ -845,39 +879,40 @@ declare const _default: {
845
879
  })[])[];
846
880
  })[];
847
881
  })[])[];
882
+ PlayerRecord: (string | ({
883
+ name: string;
884
+ type: (string | {
885
+ type: string;
886
+ mappings: {
887
+ 0: string;
888
+ 1: string;
889
+ };
890
+ })[];
891
+ anon?: undefined;
892
+ } | {
893
+ name: string;
894
+ type: string;
895
+ anon?: undefined;
896
+ } | {
897
+ anon: boolean;
898
+ type: (string | {
899
+ compareTo: string;
900
+ fields: {
901
+ add: (string | {
902
+ name: string;
903
+ type: string;
904
+ }[])[];
905
+ remove: (string | {
906
+ name: string;
907
+ type: string;
908
+ }[])[];
909
+ };
910
+ })[];
911
+ name?: undefined;
912
+ })[])[];
848
913
  PlayerRecords: (string | {
849
914
  countType: string;
850
- type: (string | ({
851
- name: string;
852
- type: (string | {
853
- type: string;
854
- mappings: {
855
- 0: string;
856
- 1: string;
857
- };
858
- })[];
859
- anon?: undefined;
860
- } | {
861
- name: string;
862
- type: string;
863
- anon?: undefined;
864
- } | {
865
- anon: boolean;
866
- type: (string | {
867
- compareTo: string;
868
- fields: {
869
- add: (string | {
870
- name: string;
871
- type: string;
872
- }[])[];
873
- remove: (string | {
874
- name: string;
875
- type: string;
876
- }[])[];
877
- };
878
- })[];
879
- name?: undefined;
880
- })[])[];
915
+ type: string;
881
916
  })[];
882
917
  Enchant: (string | {
883
918
  name: string;
@@ -1257,24 +1292,6 @@ declare const _default: {
1257
1292
  27: string;
1258
1293
  28: string;
1259
1294
  29: string;
1260
- 30: string;
1261
- 31: string;
1262
- 32: string;
1263
- 33: string;
1264
- 34: string;
1265
- 35: string;
1266
- 36: string;
1267
- 37: string;
1268
- 38: string;
1269
- 39: string;
1270
- 40: string;
1271
- 41: string;
1272
- 42: string;
1273
- 43: string;
1274
- 44: string;
1275
- 45: string;
1276
- 46: string;
1277
- 47: string;
1278
1295
  };
1279
1296
  })[];
1280
1297
  } | {
@@ -2596,7 +2613,6 @@ declare const _default: {
2596
2613
  108: string;
2597
2614
  109: string;
2598
2615
  110: string;
2599
- 111: string;
2600
2616
  };
2601
2617
  })[];
2602
2618
  } | {
@@ -2613,13 +2629,16 @@ declare const _default: {
2613
2629
  type: string;
2614
2630
  })[];
2615
2631
  })[])[];
2616
- VoxelShape: (string | {
2632
+ VoxelShape: (string | ({
2633
+ name: string;
2634
+ type: string;
2635
+ } | {
2617
2636
  name: string;
2618
2637
  type: (string | {
2619
2638
  countType: string;
2620
2639
  type: string;
2621
2640
  })[];
2622
- }[])[];
2641
+ })[])[];
2623
2642
  VoxelShapeNameEntry: (string | {
2624
2643
  name: string;
2625
2644
  type: string;
@@ -2791,6 +2810,19 @@ declare const _default: {
2791
2810
  134: string;
2792
2811
  135: string;
2793
2812
  136: string;
2813
+ 137: string;
2814
+ 138: string;
2815
+ 139: string;
2816
+ 140: string;
2817
+ 141: string;
2818
+ 142: string;
2819
+ 143: string;
2820
+ 144: string;
2821
+ 145: string;
2822
+ 146: string;
2823
+ 147: string;
2824
+ 148: string;
2825
+ 149: string;
2794
2826
  };
2795
2827
  })[];
2796
2828
  FullContainerName: (string | ({
@@ -3254,6 +3286,18 @@ declare const _default: {
3254
3286
  name: string;
3255
3287
  type: string[];
3256
3288
  })[])[];
3289
+ NoiseAlignment: (string | ({
3290
+ name: string;
3291
+ type: (string | {
3292
+ type: string;
3293
+ mappings: {
3294
+ 0: string;
3295
+ };
3296
+ })[];
3297
+ } | {
3298
+ name: string;
3299
+ type: string;
3300
+ })[])[];
3257
3301
  AttributeLayerData: (string | ({
3258
3302
  name: string;
3259
3303
  type: string;
@@ -3420,6 +3464,33 @@ declare const _default: {
3420
3464
  default: string;
3421
3465
  })[];
3422
3466
  })[])[];
3467
+ FurnaceOptions: (string | ({
3468
+ name: string;
3469
+ type: (string | {
3470
+ type: string;
3471
+ mappings: {
3472
+ 0: string;
3473
+ 1: string;
3474
+ 2: string;
3475
+ 3: string;
3476
+ 4: string;
3477
+ 5: string;
3478
+ };
3479
+ })[];
3480
+ } | {
3481
+ name: string;
3482
+ type: string;
3483
+ } | {
3484
+ name: string;
3485
+ type: (string | {
3486
+ type: string;
3487
+ mappings: {
3488
+ 0: string;
3489
+ 1: string;
3490
+ 2: string;
3491
+ };
3492
+ })[];
3493
+ })[])[];
3423
3494
  PartyInfo: (string | {
3424
3495
  name: string;
3425
3496
  type: string;
@@ -3673,6 +3744,8 @@ declare const _default: {
3673
3744
  348: string;
3674
3745
  349: string;
3675
3746
  350: string;
3747
+ 351: string;
3748
+ 352: string;
3676
3749
  };
3677
3750
  })[];
3678
3751
  } | {
@@ -3924,6 +3997,8 @@ declare const _default: {
3924
3997
  clientbound_update_sound_data: string;
3925
3998
  send_party_destination_cookie: string;
3926
3999
  party_destination_cookie_response: string;
4000
+ set_player_furnace_options: string;
4001
+ record_started: string;
3927
4002
  };
3928
4003
  })[];
3929
4004
  })[])[];
@@ -5797,10 +5872,10 @@ declare const _default: {
5797
5872
  type: string;
5798
5873
  } | {
5799
5874
  name: string;
5800
- type: (string | (string | {
5875
+ type: (string | {
5801
5876
  countType: string;
5802
5877
  type: string;
5803
- })[])[];
5878
+ })[];
5804
5879
  } | {
5805
5880
  name: string;
5806
5881
  type: (string | {
@@ -5842,13 +5917,10 @@ declare const _default: {
5842
5917
  })[];
5843
5918
  } | {
5844
5919
  name: string;
5845
- type: (string | (string | ({
5920
+ type: (string | (string | {
5846
5921
  name: string;
5847
5922
  type: string;
5848
- } | {
5849
- name: string;
5850
- type: string[];
5851
- })[])[])[];
5923
+ }[])[])[];
5852
5924
  } | {
5853
5925
  name: string;
5854
5926
  type: (string | (string | {
@@ -6900,6 +6972,7 @@ declare const _default: {
6900
6972
  0: string;
6901
6973
  1: string;
6902
6974
  2: string;
6975
+ 3: string;
6903
6976
  };
6904
6977
  })[];
6905
6978
  } | {
@@ -6910,6 +6983,10 @@ declare const _default: {
6910
6983
  float: string;
6911
6984
  bool: string;
6912
6985
  string: string;
6986
+ string_list: (string | {
6987
+ countType: string;
6988
+ type: string;
6989
+ })[];
6913
6990
  };
6914
6991
  })[];
6915
6992
  })[])[];
@@ -7162,6 +7239,25 @@ declare const _default: {
7162
7239
  name: string;
7163
7240
  type: string;
7164
7241
  }[])[];
7242
+ packet_set_player_furnace_options: (string | ({
7243
+ name: string;
7244
+ type: (string | {
7245
+ type: string;
7246
+ mappings: {
7247
+ 0: string;
7248
+ 1: string;
7249
+ 2: string;
7250
+ 3: string;
7251
+ };
7252
+ })[];
7253
+ } | {
7254
+ name: string;
7255
+ type: string;
7256
+ })[])[];
7257
+ packet_record_started: (string | {
7258
+ name: string;
7259
+ type: string;
7260
+ }[])[];
7165
7261
  };
7166
7262
  };
7167
7263
  export default _default;