mcbe-leveldb 1.16.0 → 1.17.0-jsonly
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/Changelog.md +18 -0
- package/DBUtils.d.ts +20 -0
- package/DBUtils.js +18 -1
- package/DBUtils.js.map +1 -1
- package/nbtSchemas.d.ts +167 -8
- package/nbtSchemas.js +1 -0
- package/nbtSchemas.js.map +1 -1
- package/package.json +2 -2
- package/types.d.ts +20 -1
- package/DBUtils.ts +0 -246
- package/LevelUtils.ts +0 -4672
- package/SNBTUtils.ts +0 -2150
- package/__biome_data__.ts +0 -282
- package/index.ts +0 -14
- package/nbtSchemas.ts +0 -27641
- package/utils/JSONB.ts +0 -566
package/Changelog.md
CHANGED
|
@@ -1,3 +1,21 @@
|
|
|
1
|
+
# v1.17.0
|
|
2
|
+
|
|
3
|
+
## Additions
|
|
4
|
+
|
|
5
|
+
- Added support for the "Bedrock World Editor - Player Name Saver" behavior pack for getting player's names from their UUIDs from the dynamic properties.
|
|
6
|
+
|
|
7
|
+
## Changes
|
|
8
|
+
|
|
9
|
+
- The `playerUUIDToNameDynamicPropertyParsers` constant is now exported.
|
|
10
|
+
|
|
11
|
+
## Fixes
|
|
12
|
+
|
|
13
|
+
- Fixed a bug where the TypeScript type version of the `LevelDat` NBT schema was missing many of the properties added in v1.16.0.
|
|
14
|
+
- Fixed a bug where the following fields of the `PlayerClient` NBT schema were marked as optional:
|
|
15
|
+
- `MsaId`
|
|
16
|
+
- `SelfSignedId`
|
|
17
|
+
- `ServerId`
|
|
18
|
+
|
|
1
19
|
# v1.16.0
|
|
2
20
|
|
|
3
21
|
## Additions
|
package/DBUtils.d.ts
CHANGED
|
@@ -102,3 +102,23 @@ export declare function getPlayerNameFromUUID(db: LevelDB, uuid: string | bigint
|
|
|
102
102
|
* @returns The name of the player, or `null` if the player's name cannot be found .
|
|
103
103
|
*/
|
|
104
104
|
export declare function getPlayerNameFromUUIDSync(dynamicProperties: NBT.NBT, uuid: string | bigint): string | null;
|
|
105
|
+
/**
|
|
106
|
+
* A function that can be used to get a player's name from their UUID from the dynamic properties.
|
|
107
|
+
*/
|
|
108
|
+
interface PlayerUUIDToNameDynamicPropertyParser {
|
|
109
|
+
/**
|
|
110
|
+
* A function that can be used to get a player's name from their UUID from the dynamic properties.
|
|
111
|
+
*
|
|
112
|
+
* @param dynamicProperties The dynamic properties data, should be the data from the `DynamicProperties` LevelDB key.
|
|
113
|
+
* @param uuid The UUID of the player to get the name of.
|
|
114
|
+
* @returns The name of the player, or `null` if the player's name cannot be found.
|
|
115
|
+
*/
|
|
116
|
+
(dynamicProperties: NBT.NBT, uuid: string): string | null;
|
|
117
|
+
}
|
|
118
|
+
/**
|
|
119
|
+
* The list of functions that can be used to get a player's name from their UUID from the dynamic properties.
|
|
120
|
+
*
|
|
121
|
+
* These will be called in order until one of them returns a non-null value.
|
|
122
|
+
*/
|
|
123
|
+
export declare const playerUUIDToNameDynamicPropertyParsers: PlayerUUIDToNameDynamicPropertyParser[];
|
|
124
|
+
export {};
|
package/DBUtils.js
CHANGED
|
@@ -112,7 +112,24 @@ export function getPlayerNameFromUUIDSync(dynamicProperties, uuid) {
|
|
|
112
112
|
*
|
|
113
113
|
* These will be called in order until one of them returns a non-null value.
|
|
114
114
|
*/
|
|
115
|
-
const playerUUIDToNameDynamicPropertyParsers = [
|
|
115
|
+
export const playerUUIDToNameDynamicPropertyParsers = [
|
|
116
|
+
function parseBWEPlayerNameSaver(dynamicProperties, uuid) {
|
|
117
|
+
const addOnUUIDs = ["9736e748-93a5-4306-ba68-ac6af30c44b2"];
|
|
118
|
+
for (const addOnUUID of addOnUUIDs) {
|
|
119
|
+
const addonDynamicProperties = dynamicProperties.value[addOnUUID]?.type === "compound" ? dynamicProperties.value[addOnUUID].value : null;
|
|
120
|
+
if (!addonDynamicProperties)
|
|
121
|
+
continue;
|
|
122
|
+
for (const key in addonDynamicProperties) {
|
|
123
|
+
if (key !== `playerName:${uuid}`)
|
|
124
|
+
continue;
|
|
125
|
+
const dynamicPropertyValue = addonDynamicProperties[key];
|
|
126
|
+
if (dynamicPropertyValue.type !== "string")
|
|
127
|
+
continue;
|
|
128
|
+
return dynamicPropertyValue.value;
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
return null;
|
|
132
|
+
},
|
|
116
133
|
function parse8CraftersServerUtilities(dynamicProperties, uuid) {
|
|
117
134
|
const addOnUUIDs = [
|
|
118
135
|
// Internal development version
|
package/DBUtils.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DBUtils.js","sourceRoot":"","sources":["DBUtils.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,uBAAuB,EAA2B,MAAM,iBAAiB,CAAC;AACnF,OAAO,GAAG,MAAM,gBAAgB,CAAC;AACjC,OAAO,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;AA0BzC,MAAM,UAAU,aAAa,CAA+B,UAA8B,EAAE,IAAO;IAC/F,IAAI,KAAK,CAAC,OAAO,CAAC,UAAU,CAAC;QAAE,OAAO,UAAU,CAAC,MAAM,CAAC,CAAC,GAAW,EAAW,EAAE,CAAC,uBAAuB,CAAC,GAAG,CAAC,KAAK,IAAI,CAAC,CAAC;IACzH,OAAO,IAAI,OAAO,CACd,CAAC,OAA+C,EAAQ,EAAE,CACtD,KAAK,CAAC,KAAK,IAAmB,EAAE;QAC5B,MAAM,SAAS,GAA0B,EAAE,CAAC;QAC5C,IAAI,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,IAAI,UAAU,CAAC,WAAW,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,WAAW,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC,EAAE,CAAC;YAC5G,IAAI,uBAAuB,CAAC,MAAM,CAAC,KAAK,IAAI;gBAAE,SAAS,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QACzE,CAAC;QACD,OAAO,CAAC,SAAS,CAAC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,CAAC;YACjC,MAAM,sBAAsB,GACxB,iBAAiB,CAAC,KAAK,CAAC,SAAS,CAAC,EAAE,IAAI,KAAK,UAAU,CAAC,CAAC,CAAC,iBAAiB,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC;YAC9G,IAAI,CAAC,sBAAsB;gBAAE,SAAS;YACtC,KAAK,MAAM,GAAG,IAAI,sBAAsB,EAAE,CAAC;gBACvC,IAAI,GAAG,KAAK,UAAU,IAAI,EAAE;oBAAE,SAAS;gBACvC,MAAM,oBAAoB,GAAqE,sBAAsB,CAAC,GAAG,CAAS,CAAC;gBACnI,IAAI,oBAAoB,CAAC,IAAI,KAAK,QAAQ;oBAAE,SAAS;gBACrD,IAAI,CAAC;oBACD,MAAM,IAAI,GAAQ,KAAK,CAAC,KAAK,CAAC,oBAAoB,CAAC,KAAK,CAAC,CAAC;oBAC1D,IAAI,OAAO,IAAI,KAAK,QAAQ,IAAI,IAAI,KAAK,IAAI,IAAI,OAAO,IAAI,CAAC,IAAI,KAAK,QAAQ;wBAAE,OAAO,IAAI,CAAC,IAAI,CAAC;gBACrG,CAAC;gBAAC,OAAO,CAAC,EAAE,CAAC;oBACT,SAAS;gBACb,CAAC;YACL,CAAC;QACL,CAAC;QACD,OAAO,IAAI,CAAC;IAChB,CAAC;CACJ,CAAC"}
|
package/nbtSchemas.d.ts
CHANGED
|
@@ -4608,6 +4608,7 @@ export declare namespace NBTSchemas {
|
|
|
4608
4608
|
readonly title: "The PlayerClient schema.";
|
|
4609
4609
|
readonly markdownDescription: "The player client data.";
|
|
4610
4610
|
readonly type: "compound";
|
|
4611
|
+
readonly required: ["MsaId", "SelfSignedId", "ServerId"];
|
|
4611
4612
|
readonly properties: {
|
|
4612
4613
|
readonly MsaId: {
|
|
4613
4614
|
readonly type: "string";
|
|
@@ -12199,6 +12200,7 @@ export declare namespace NBTSchemas {
|
|
|
12199
12200
|
readonly title: "The PlayerClient schema.";
|
|
12200
12201
|
readonly markdownDescription: "The player client data.";
|
|
12201
12202
|
readonly type: "compound";
|
|
12203
|
+
readonly required: ["MsaId", "SelfSignedId", "ServerId"];
|
|
12202
12204
|
readonly properties: {
|
|
12203
12205
|
readonly MsaId: {
|
|
12204
12206
|
readonly type: "string";
|
|
@@ -14938,6 +14940,19 @@ export declare namespace NBTSchemas {
|
|
|
14938
14940
|
};
|
|
14939
14941
|
};
|
|
14940
14942
|
};
|
|
14943
|
+
/**
|
|
14944
|
+
* UNDOCUMENTED.
|
|
14945
|
+
*
|
|
14946
|
+
* @enum 0 | 1
|
|
14947
|
+
*
|
|
14948
|
+
* @enumDescriptions
|
|
14949
|
+
* - `0`: false
|
|
14950
|
+
* - `1`: true
|
|
14951
|
+
*/
|
|
14952
|
+
allowAnonymousBlockDropsInEditorWorlds?: {
|
|
14953
|
+
type: "byte";
|
|
14954
|
+
value: 0 | 1;
|
|
14955
|
+
};
|
|
14941
14956
|
/**
|
|
14942
14957
|
* The `allowdestructiveobjects` [game rule](https://minecraft.wiki/w/game_rule).
|
|
14943
14958
|
*
|
|
@@ -15268,6 +15283,19 @@ export declare namespace NBTSchemas {
|
|
|
15268
15283
|
type: "byte";
|
|
15269
15284
|
value: 0 | 1;
|
|
15270
15285
|
};
|
|
15286
|
+
/**
|
|
15287
|
+
* UNDOCUMENTED.
|
|
15288
|
+
*
|
|
15289
|
+
* @enum 0 | 1
|
|
15290
|
+
*
|
|
15291
|
+
* @enumDescriptions
|
|
15292
|
+
* - `0`: false
|
|
15293
|
+
* - `1`: true
|
|
15294
|
+
*/
|
|
15295
|
+
cheatsEnabled?: {
|
|
15296
|
+
type: "byte";
|
|
15297
|
+
value: 0 | 1;
|
|
15298
|
+
};
|
|
15271
15299
|
/**
|
|
15272
15300
|
* UNDOCUMENTED.
|
|
15273
15301
|
*
|
|
@@ -15382,6 +15410,13 @@ export declare namespace NBTSchemas {
|
|
|
15382
15410
|
type: "int";
|
|
15383
15411
|
value: 0 | 1 | 2;
|
|
15384
15412
|
};
|
|
15413
|
+
/**
|
|
15414
|
+
* UNDOCUMENTED.
|
|
15415
|
+
*/
|
|
15416
|
+
daylightCycle?: {
|
|
15417
|
+
type: "int";
|
|
15418
|
+
value: number;
|
|
15419
|
+
};
|
|
15385
15420
|
/**
|
|
15386
15421
|
* The `dodaylightcycle` [game rule](https://minecraft.wiki/w/game_rule).
|
|
15387
15422
|
*
|
|
@@ -15396,7 +15431,7 @@ export declare namespace NBTSchemas {
|
|
|
15396
15431
|
value: 0 | 1;
|
|
15397
15432
|
};
|
|
15398
15433
|
/**
|
|
15399
|
-
* The `
|
|
15434
|
+
* The `doentitydrops` [game rule](https://minecraft.wiki/w/game_rule).
|
|
15400
15435
|
*
|
|
15401
15436
|
* @enum 0 | 1
|
|
15402
15437
|
*
|
|
@@ -15404,7 +15439,7 @@ export declare namespace NBTSchemas {
|
|
|
15404
15439
|
* - `0`: false
|
|
15405
15440
|
* - `1`: true
|
|
15406
15441
|
*/
|
|
15407
|
-
|
|
15442
|
+
doentitydrops?: {
|
|
15408
15443
|
type: "byte";
|
|
15409
15444
|
value: 0 | 1;
|
|
15410
15445
|
};
|
|
@@ -15670,6 +15705,32 @@ export declare namespace NBTSchemas {
|
|
|
15670
15705
|
type: "byte";
|
|
15671
15706
|
value: 0 | 1;
|
|
15672
15707
|
};
|
|
15708
|
+
/**
|
|
15709
|
+
* 1 or 0 (true/false) - UNDOCUMENTED.
|
|
15710
|
+
*
|
|
15711
|
+
* @enum 0 | 1
|
|
15712
|
+
*
|
|
15713
|
+
* @enumDescriptions
|
|
15714
|
+
* - `0`: false
|
|
15715
|
+
* - `1`: true
|
|
15716
|
+
*/
|
|
15717
|
+
data_driven_items?: {
|
|
15718
|
+
type: "byte";
|
|
15719
|
+
value: 0 | 1;
|
|
15720
|
+
};
|
|
15721
|
+
/**
|
|
15722
|
+
* 1 or 0 (true/false) - UNDOCUMENTED.
|
|
15723
|
+
*
|
|
15724
|
+
* @enum 0 | 1
|
|
15725
|
+
*
|
|
15726
|
+
* @enumDescriptions
|
|
15727
|
+
* - `0`: false
|
|
15728
|
+
* - `1`: true
|
|
15729
|
+
*/
|
|
15730
|
+
data_driven_vanilla_blocks_and_items?: {
|
|
15731
|
+
type: "byte";
|
|
15732
|
+
value: 0 | 1;
|
|
15733
|
+
};
|
|
15673
15734
|
/**
|
|
15674
15735
|
* 1 or 0 (true/false) - true if the experimental creator cameras experimental toggle is enabled.
|
|
15675
15736
|
*
|
|
@@ -15683,6 +15744,19 @@ export declare namespace NBTSchemas {
|
|
|
15683
15744
|
type: "byte";
|
|
15684
15745
|
value: 0 | 1;
|
|
15685
15746
|
};
|
|
15747
|
+
/**
|
|
15748
|
+
* 1 or 0 (true/false) - UNDOCUMENTED.
|
|
15749
|
+
*
|
|
15750
|
+
* @enum 0 | 1
|
|
15751
|
+
*
|
|
15752
|
+
* @enumDescriptions
|
|
15753
|
+
* - `0`: false
|
|
15754
|
+
* - `1`: true
|
|
15755
|
+
*/
|
|
15756
|
+
experimental_molang_features?: {
|
|
15757
|
+
type: "byte";
|
|
15758
|
+
value: 0 | 1;
|
|
15759
|
+
};
|
|
15686
15760
|
/**
|
|
15687
15761
|
* 1 or 0 (true/false) - true if the jigsaw structures experimental toggle is enabled.
|
|
15688
15762
|
*
|
|
@@ -15709,6 +15783,19 @@ export declare namespace NBTSchemas {
|
|
|
15709
15783
|
type: "byte";
|
|
15710
15784
|
value: 0 | 1;
|
|
15711
15785
|
};
|
|
15786
|
+
/**
|
|
15787
|
+
* 1 or 0 (true/false) - UNDOCUMENTED.
|
|
15788
|
+
*
|
|
15789
|
+
* @enum 0 | 1
|
|
15790
|
+
*
|
|
15791
|
+
* @enumDescriptions
|
|
15792
|
+
* - `0`: false
|
|
15793
|
+
* - `1`: true
|
|
15794
|
+
*/
|
|
15795
|
+
next_major_update?: {
|
|
15796
|
+
type: "byte";
|
|
15797
|
+
value: 0 | 1;
|
|
15798
|
+
};
|
|
15712
15799
|
/**
|
|
15713
15800
|
* 1 or 0 (true/false) - true if the upcoming creator features experimental toggle is enabled.
|
|
15714
15801
|
*
|
|
@@ -15722,6 +15809,19 @@ export declare namespace NBTSchemas {
|
|
|
15722
15809
|
type: "byte";
|
|
15723
15810
|
value: 0 | 1;
|
|
15724
15811
|
};
|
|
15812
|
+
/**
|
|
15813
|
+
* 1 or 0 (true/false) - UNDOCUMENTED.
|
|
15814
|
+
*
|
|
15815
|
+
* @enum 0 | 1
|
|
15816
|
+
*
|
|
15817
|
+
* @enumDescriptions
|
|
15818
|
+
* - `0`: false
|
|
15819
|
+
* - `1`: true
|
|
15820
|
+
*/
|
|
15821
|
+
vanilla_experiments?: {
|
|
15822
|
+
type: "byte";
|
|
15823
|
+
value: 0 | 1;
|
|
15824
|
+
};
|
|
15725
15825
|
/**
|
|
15726
15826
|
* 1 or 0 (true/false) - true if the y_2025_drop_1 experimental toggle is enabled.
|
|
15727
15827
|
*
|
|
@@ -16313,6 +16413,49 @@ export declare namespace NBTSchemas {
|
|
|
16313
16413
|
type: "int";
|
|
16314
16414
|
value: number;
|
|
16315
16415
|
};
|
|
16416
|
+
/**
|
|
16417
|
+
* Whether a player has died in this world (may refer to the host specifically or may refer to any player).
|
|
16418
|
+
*
|
|
16419
|
+
* @enum 0 | 1
|
|
16420
|
+
*
|
|
16421
|
+
* @enumDescriptions
|
|
16422
|
+
* - `0`: false
|
|
16423
|
+
* - `1`: true
|
|
16424
|
+
*/
|
|
16425
|
+
PlayerHasDied?: {
|
|
16426
|
+
type: "byte";
|
|
16427
|
+
value: 0 | 1;
|
|
16428
|
+
};
|
|
16429
|
+
/**
|
|
16430
|
+
* UNDOCUMENTED.
|
|
16431
|
+
*/
|
|
16432
|
+
permissionsLevel?: {
|
|
16433
|
+
type: "int";
|
|
16434
|
+
value: number;
|
|
16435
|
+
};
|
|
16436
|
+
/**
|
|
16437
|
+
* UNDOCUMENTED.
|
|
16438
|
+
*/
|
|
16439
|
+
playerPermissionsLevel?: {
|
|
16440
|
+
type: "int";
|
|
16441
|
+
value: number;
|
|
16442
|
+
};
|
|
16443
|
+
/**
|
|
16444
|
+
* The `playerssleepingpercentage` [game rule](https://minecraft.wiki/w/game_rule).
|
|
16445
|
+
*
|
|
16446
|
+
* @default 100
|
|
16447
|
+
*/
|
|
16448
|
+
playerssleepingpercentage?: {
|
|
16449
|
+
type: "int";
|
|
16450
|
+
value: number;
|
|
16451
|
+
};
|
|
16452
|
+
/**
|
|
16453
|
+
* UNDOCUMENTED.
|
|
16454
|
+
*/
|
|
16455
|
+
playerwaypoints?: {
|
|
16456
|
+
type: "int";
|
|
16457
|
+
value: number;
|
|
16458
|
+
};
|
|
16316
16459
|
/**
|
|
16317
16460
|
* The UUID of the premium world template this world was created with. Used for [Marketplace worlds](https://minecraft.wiki/w/Marketplace#Worlds). *info needed*
|
|
16318
16461
|
*
|
|
@@ -16440,6 +16583,13 @@ export declare namespace NBTSchemas {
|
|
|
16440
16583
|
type: "int";
|
|
16441
16584
|
value: number;
|
|
16442
16585
|
};
|
|
16586
|
+
/**
|
|
16587
|
+
* UNDOCUMENTED.
|
|
16588
|
+
*/
|
|
16589
|
+
serverEditorConnectionPolicy?: {
|
|
16590
|
+
type: "int";
|
|
16591
|
+
value: number;
|
|
16592
|
+
};
|
|
16443
16593
|
/**
|
|
16444
16594
|
* The `showbordereffect` [game rule](https://minecraft.wiki/w/game_rule).
|
|
16445
16595
|
*
|
|
@@ -16623,6 +16773,15 @@ export declare namespace NBTSchemas {
|
|
|
16623
16773
|
type: "long";
|
|
16624
16774
|
value: [high: number, low: number];
|
|
16625
16775
|
};
|
|
16776
|
+
/**
|
|
16777
|
+
* UNDOCMENTED.
|
|
16778
|
+
*
|
|
16779
|
+
* @default 1
|
|
16780
|
+
*/
|
|
16781
|
+
WorldVersion?: {
|
|
16782
|
+
type: "int";
|
|
16783
|
+
value: number;
|
|
16784
|
+
};
|
|
16626
16785
|
/**
|
|
16627
16786
|
* The `tntexplodes` [game rule](https://minecraft.wiki/w/game_rule).
|
|
16628
16787
|
*
|
|
@@ -18812,15 +18971,15 @@ export declare namespace NBTSchemas {
|
|
|
18812
18971
|
type PlayerClient = {
|
|
18813
18972
|
type: "compound";
|
|
18814
18973
|
value: {
|
|
18815
|
-
MsaId
|
|
18974
|
+
MsaId: {
|
|
18816
18975
|
type: "string";
|
|
18817
18976
|
value: string;
|
|
18818
18977
|
};
|
|
18819
|
-
SelfSignedId
|
|
18978
|
+
SelfSignedId: {
|
|
18820
18979
|
type: "string";
|
|
18821
18980
|
value: string;
|
|
18822
18981
|
};
|
|
18823
|
-
ServerId
|
|
18982
|
+
ServerId: {
|
|
18824
18983
|
type: "string";
|
|
18825
18984
|
value: string;
|
|
18826
18985
|
};
|
|
@@ -28103,15 +28262,15 @@ export declare namespace NBTSchemas {
|
|
|
28103
28262
|
type Players = {
|
|
28104
28263
|
type: "compound";
|
|
28105
28264
|
value: {
|
|
28106
|
-
MsaId
|
|
28265
|
+
MsaId: {
|
|
28107
28266
|
type: "string";
|
|
28108
28267
|
value: string;
|
|
28109
28268
|
};
|
|
28110
|
-
SelfSignedId
|
|
28269
|
+
SelfSignedId: {
|
|
28111
28270
|
type: "string";
|
|
28112
28271
|
value: string;
|
|
28113
28272
|
};
|
|
28114
|
-
ServerId
|
|
28273
|
+
ServerId: {
|
|
28115
28274
|
type: "string";
|
|
28116
28275
|
value: string;
|
|
28117
28276
|
};
|
package/nbtSchemas.js
CHANGED
|
@@ -4230,6 +4230,7 @@ export var NBTSchemas;
|
|
|
4230
4230
|
title: "The PlayerClient schema.",
|
|
4231
4231
|
markdownDescription: "The player client data.",
|
|
4232
4232
|
type: "compound",
|
|
4233
|
+
required: ["MsaId", "SelfSignedId", "ServerId"],
|
|
4233
4234
|
properties: {
|
|
4234
4235
|
MsaId: {
|
|
4235
4236
|
type: "string",
|