mcbe-leveldb 1.7.3 → 1.8.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/Changelog.md +92 -0
- package/LevelUtils.d.ts +169 -16
- package/LevelUtils.js +236 -22
- package/LevelUtils.js.map +1 -1
- package/LevelUtils.ts +252 -25
- package/__biome_data__.d.ts +1 -1
- package/__biome_data__.js +3 -3
- package/__biome_data__.js.map +1 -1
- package/__biome_data__.ts +3 -3
- package/nbtSchemas.d.ts +2098 -691
- package/nbtSchemas.js +844 -248
- package/nbtSchemas.js.map +1 -1
- package/nbtSchemas.ts +1907 -666
- package/package.json +1 -1
package/Changelog.md
CHANGED
|
@@ -1,3 +1,95 @@
|
|
|
1
|
+
# v1.8.0
|
|
2
|
+
|
|
3
|
+
## Critical Fixes
|
|
4
|
+
|
|
5
|
+
- Fixed a bug that has been around since the first version of this module where `MetaDataHash` keys were detected as `BlendingBiomeHeight` keys, `GeneratedPreCavesAndCliffsBlending` keys were detected as `MetaDataHash` keys, and `BlendingBiomeHeight` keys were detected as `GeneratedPreCavesAndCliffsBlending` keys.
|
|
6
|
+
|
|
7
|
+
## Additions
|
|
8
|
+
|
|
9
|
+
- Added a custom serializer and parser for the `LevelChunkMetaDataDictionary` content type.
|
|
10
|
+
- Added the `BiomeIdsTable` content type.
|
|
11
|
+
- Added the `BiomeIdsTable` NBT schema.
|
|
12
|
+
- Added the `VillageRaid` content type.
|
|
13
|
+
- Added the `VillageRaid` NBT schema.
|
|
14
|
+
- Added the `PositionTrackingDB` content type.
|
|
15
|
+
- Added the `PositionTrackingLastId` content type.
|
|
16
|
+
- Added the `GenerationSeed` content type.
|
|
17
|
+
- Added the `LegacyDimension` content type.
|
|
18
|
+
- Added the `MVillages` content type.
|
|
19
|
+
- Added the `Villages` content type.
|
|
20
|
+
- Added the `LevelSpawnWasFixed` content type.
|
|
21
|
+
- Added a default value to the following properties of the following NBT schemas:
|
|
22
|
+
- `Map`
|
|
23
|
+
- `unlimitedTracking`
|
|
24
|
+
- `scale`
|
|
25
|
+
- `Scoreboard`
|
|
26
|
+
- `DisplayObjectives[number].SortOrder`
|
|
27
|
+
- `LevelDat`
|
|
28
|
+
- `functioncommandlimit`
|
|
29
|
+
- `maxcommandchainlength`
|
|
30
|
+
- `prid`
|
|
31
|
+
- `ActorPrefix`
|
|
32
|
+
- `Color`
|
|
33
|
+
- `Color2`
|
|
34
|
+
- `MarkVariant`
|
|
35
|
+
- `OwnerNew`
|
|
36
|
+
- `SkinID`
|
|
37
|
+
- `Strength`
|
|
38
|
+
- `StrengthMax`
|
|
39
|
+
- `Variant`
|
|
40
|
+
- `Entity_ItemEntity`
|
|
41
|
+
- `OwnerID`
|
|
42
|
+
- `Block_Piston`
|
|
43
|
+
- `NewState`
|
|
44
|
+
- Added enums to the following non-boolean properties of the following NBT schemas (added enums on boolean properties are not being listed in the changelog):
|
|
45
|
+
- `Scoreboard`
|
|
46
|
+
- `DisplayObjectives[number].SortOrder`
|
|
47
|
+
- `Objectives[number].Criteria`
|
|
48
|
+
- Added enums to many boolean NBT schema properties.
|
|
49
|
+
- Added descriptions and titles to many NBT schema properties.
|
|
50
|
+
- Added the `verticalFlySpeed` property to the `abilities` property of the `LevelDat` NBT schema.
|
|
51
|
+
- Added the `isRandomSeedAllowed` property to the `LevelDat` NBT schema.
|
|
52
|
+
- Added the `projectilescanbreakblocks` property to the `LevelDat` NBT schema.
|
|
53
|
+
- Added the `showrecipemessages` property to the `LevelDat` NBT schema.
|
|
54
|
+
- Added the `tntexplosiondropdecay` property to the `LevelDat` NBT schema.
|
|
55
|
+
- Documented the `InventoryVersion` property of the `LevelDat` NBT schema.
|
|
56
|
+
- Added more information to the documentation of the `texturePacksRequired` property of the `LevelDat` NBT schema.
|
|
57
|
+
|
|
58
|
+
## Changes
|
|
59
|
+
|
|
60
|
+
- Documentation refactor to replace `Unknown.` in documentation entries of NBT schemas with one of:
|
|
61
|
+
- `UNKNOWN.`: If the schema for that tag is incomplete or completely empty as it is unknown what properties it has.
|
|
62
|
+
- `UNDOCUMENTED.`: If the tag with that description has not been documented yet or it is unknown what it does.
|
|
63
|
+
- Updated the `BiomeData` from `v1.21.80` to `v1.21.110` (the update has zero actual changes).
|
|
64
|
+
- Many properties of the `VillageDwellers`, `VillageInfo`, `VillagePOI`, and `VillagePlayers` NBT schemas are now marked as required.
|
|
65
|
+
|
|
66
|
+
## Fixes
|
|
67
|
+
|
|
68
|
+
- Fixed a bug where the `list[number].id` property of the `BiomeData` NBT schema was of type `byte` instead of `short`.
|
|
69
|
+
- Fixed an incorrect TypeScript type version of the `Scoreboard` NBT schema.
|
|
70
|
+
- Fixed a bug where empty object types in the TypeScript type versions of NBT schemas were generated as `{}` instead of `object`.
|
|
71
|
+
- Fixed a bug where a few optional properties of the `VibrationListener` property of the `Entity_Allay` NBT schema were incorrectly marked as required.
|
|
72
|
+
- Fixed an incorrect NBT schema for the `decorations[number].key` property of the `Map` NBT schema.
|
|
73
|
+
- Removed a `minimum` value from the list items of the `structure_world_origin` property of the `StructureTemplate` NBT schema that should not have been there.
|
|
74
|
+
- Fixed the descriptions of the list items of the `structure_world_origin` property of the `StructureTemplate` NBT schema.
|
|
75
|
+
- Fixed an incorrect NBT schema for the `structure.palette.default.block_position_data` property of the `StructureTemplate` NBT schema.
|
|
76
|
+
- Fixed incorrect NBT schemas for following properties of the `LevelDat` NBT schema:
|
|
77
|
+
- `editorWorldType`
|
|
78
|
+
- `eduOffer`
|
|
79
|
+
- `functioncommandlimit`
|
|
80
|
+
- `spawnradius`
|
|
81
|
+
- Fixed a bug where the `LevelDat` NBT schema had the `limitedWorldDepth` property incorrectly capitalized as `LimitedWorldDepth`.
|
|
82
|
+
- Fixed a bug where the `LevelDat` NBT schema had the `limitedWorldWidth` property incorrectly capitalized as `LimitedWorldWidth`.
|
|
83
|
+
- Fixed an incorrectly structured default value for the `LevelName` property of the `LevelDat` NBT schema.
|
|
84
|
+
- Fixed incorrect documentation for the `NetworkVersion` property of the `LevelDat` NBT schema.
|
|
85
|
+
- Fixed a bug where a the following optional properties of the `ActorPrefix` NBT schema were incorrectly marked as required:
|
|
86
|
+
- `CustomNameVisible`
|
|
87
|
+
- `Fire`
|
|
88
|
+
- `Persistent`
|
|
89
|
+
- Minor whitespace fixes with some instances of the following in the documentation:
|
|
90
|
+
- `*needs testing*`
|
|
91
|
+
- `*info needed*`
|
|
92
|
+
|
|
1
93
|
# v1.7.3
|
|
2
94
|
|
|
3
95
|
## Fixes
|
package/LevelUtils.d.ts
CHANGED
|
@@ -43,7 +43,7 @@ export declare const gameModes: readonly ["survival", "creative", "adventure", u
|
|
|
43
43
|
/**
|
|
44
44
|
* The content types for LevelDB entries.
|
|
45
45
|
*/
|
|
46
|
-
export declare const DBEntryContentTypes: readonly ["Data3D", "Version", "Data2D", "Data2DLegacy", "SubChunkPrefix", "LegacyTerrain", "BlockEntity", "Entity", "PendingTicks", "LegacyBlockExtraData", "BiomeState", "FinalizedState", "ConversionData", "BorderBlocks", "HardcodedSpawners", "RandomTicks", "Checksums", "
|
|
46
|
+
export declare const DBEntryContentTypes: readonly ["Data3D", "Version", "Data2D", "Data2DLegacy", "SubChunkPrefix", "LegacyTerrain", "BlockEntity", "Entity", "PendingTicks", "LegacyBlockExtraData", "BiomeState", "FinalizedState", "ConversionData", "BorderBlocks", "HardcodedSpawners", "RandomTicks", "Checksums", "GenerationSeed", "GeneratedPreCavesAndCliffsBlending", "BlendingBiomeHeight", "MetaDataHash", "BlendingData", "ActorDigestVersion", "LegacyVersion", "AABBVolumes", "VillageDwellers", "VillageInfo", "VillagePOI", "VillagePlayers", "VillageRaid", "Player", "PlayerClient", "ActorPrefix", "ChunkLoadedRequest", "Digest", "Map", "Portals", "SchedulerWT", "StructureTemplate", "TickingArea", "FlatWorldLayers", "LegacyDimension", "MVillages", "Villages", "LevelSpawnWasFixed", "PositionTrackingDB", "PositionTrackingLastId", "Scoreboard", "Dimension", "AutonomousEntities", "BiomeData", "BiomeIdsTable", "MobEvents", "DynamicProperties", "LevelChunkMetaDataDictionary", "RealmsStoriesData", "LevelDat", "ForcedWorldCorruption", "Unknown"];
|
|
47
47
|
/**
|
|
48
48
|
* The content type to format mapping for LevelDB entries.
|
|
49
49
|
*/
|
|
@@ -394,9 +394,11 @@ export declare const entryContentTypeToFormatMap: {
|
|
|
394
394
|
readonly type: "unknown";
|
|
395
395
|
};
|
|
396
396
|
/**
|
|
397
|
-
*
|
|
397
|
+
* Bounding boxes for structure spawns, such as a Nether Fortress or Pillager Outpost.
|
|
398
|
+
*
|
|
399
|
+
* @deprecated Replaced with {@link AABBVolumes} in either 1.21.120 or one of the 1.21.120 previews.
|
|
400
|
+
*
|
|
398
401
|
* @todo Figure out how to parse this.
|
|
399
|
-
* @todo Add a description for this.
|
|
400
402
|
*/
|
|
401
403
|
readonly HardcodedSpawners: {
|
|
402
404
|
/**
|
|
@@ -416,23 +418,38 @@ export declare const entryContentTypeToFormatMap: {
|
|
|
416
418
|
readonly type: "NBT";
|
|
417
419
|
};
|
|
418
420
|
/**
|
|
419
|
-
*
|
|
421
|
+
* The low segment of the 4 byte halves of the seed value used to generate the chunk.
|
|
420
422
|
*
|
|
421
|
-
*
|
|
422
|
-
*
|
|
423
|
+
* The low segment can also be found by reading the first 4 bytes of the seed as a little-endian signed integer when it is encoded as a little-endian 64-bit signed integer.
|
|
424
|
+
*
|
|
425
|
+
* @todo Check if this still exists (I have only seen it in a world from a 1.19.60.22 dev build).
|
|
423
426
|
*/
|
|
424
|
-
readonly
|
|
427
|
+
readonly GenerationSeed: {
|
|
425
428
|
/**
|
|
426
429
|
* The format type of the data.
|
|
427
430
|
*/
|
|
428
|
-
readonly type: "
|
|
431
|
+
readonly type: "int";
|
|
432
|
+
/**
|
|
433
|
+
* How many bytes this integer is.
|
|
434
|
+
*/
|
|
435
|
+
readonly bytes: 4;
|
|
436
|
+
/**
|
|
437
|
+
* The endianness of the data.
|
|
438
|
+
*/
|
|
439
|
+
readonly format: "LE";
|
|
440
|
+
/**
|
|
441
|
+
* The signedness of the data.
|
|
442
|
+
*/
|
|
443
|
+
readonly signed: true;
|
|
429
444
|
};
|
|
430
445
|
/**
|
|
431
|
-
*
|
|
446
|
+
* xxHash64 checksums of `SubchunkBlocks`, `BlockEntities`, `Entities`, and `Data2D` values.
|
|
447
|
+
*
|
|
448
|
+
* @deprecated Only used in versions < 1.18.0.
|
|
449
|
+
*
|
|
432
450
|
* @todo Figure out how to parse this.
|
|
433
|
-
* @todo Add a description for this.
|
|
434
451
|
*/
|
|
435
|
-
readonly
|
|
452
|
+
readonly Checksums: {
|
|
436
453
|
/**
|
|
437
454
|
* The format type of the data.
|
|
438
455
|
*/
|
|
@@ -460,6 +477,19 @@ export declare const entryContentTypeToFormatMap: {
|
|
|
460
477
|
*/
|
|
461
478
|
readonly type: "unknown";
|
|
462
479
|
};
|
|
480
|
+
/**
|
|
481
|
+
* A hash which is the key in the `LevelChunkMetaDataDictionary` record
|
|
482
|
+
* for the NBT metadata of this chunk. Seems like it might default to something dependent
|
|
483
|
+
* on the current game or chunk version.
|
|
484
|
+
*
|
|
485
|
+
* @todo Figure out how to parse this.
|
|
486
|
+
*/
|
|
487
|
+
readonly MetaDataHash: {
|
|
488
|
+
/**
|
|
489
|
+
* The format type of the data.
|
|
490
|
+
*/
|
|
491
|
+
readonly type: "unknown";
|
|
492
|
+
};
|
|
463
493
|
/**
|
|
464
494
|
* @todo Figure out how to parse this.
|
|
465
495
|
* @todo Add a description for this.
|
|
@@ -505,6 +535,30 @@ export declare const entryContentTypeToFormatMap: {
|
|
|
505
535
|
*/
|
|
506
536
|
readonly signed: false;
|
|
507
537
|
};
|
|
538
|
+
/**
|
|
539
|
+
* @deprecated It is unknown when this was removed, it was found in a Windows 10 Edition Beta v0.15.0 world.
|
|
540
|
+
*
|
|
541
|
+
* @todo Add a schema for this.
|
|
542
|
+
* @todo Add a description for this.
|
|
543
|
+
*/
|
|
544
|
+
readonly MVillages: {
|
|
545
|
+
/**
|
|
546
|
+
* The format type of the data.
|
|
547
|
+
*/
|
|
548
|
+
readonly type: "NBT";
|
|
549
|
+
};
|
|
550
|
+
/**
|
|
551
|
+
* @deprecated It is unknown when this was removed.
|
|
552
|
+
*
|
|
553
|
+
* @todo Add a schema for this.
|
|
554
|
+
* @todo Add a description for this.
|
|
555
|
+
*/
|
|
556
|
+
readonly Villages: {
|
|
557
|
+
/**
|
|
558
|
+
* The format type of the data.
|
|
559
|
+
*/
|
|
560
|
+
readonly type: "NBT";
|
|
561
|
+
};
|
|
508
562
|
/**
|
|
509
563
|
* @see {@link NBTSchemas.nbtSchemas.VillageDwellers}
|
|
510
564
|
*
|
|
@@ -549,6 +603,17 @@ export declare const entryContentTypeToFormatMap: {
|
|
|
549
603
|
*/
|
|
550
604
|
readonly type: "NBT";
|
|
551
605
|
};
|
|
606
|
+
/**
|
|
607
|
+
* @see {@link NBTSchemas.nbtSchemas.VillageRaid}
|
|
608
|
+
*
|
|
609
|
+
* @todo Add a description for this.
|
|
610
|
+
*/
|
|
611
|
+
readonly VillageRaid: {
|
|
612
|
+
/**
|
|
613
|
+
* The format type of the data.
|
|
614
|
+
*/
|
|
615
|
+
readonly type: "NBT";
|
|
616
|
+
};
|
|
552
617
|
/**
|
|
553
618
|
* A player's data.
|
|
554
619
|
*
|
|
@@ -721,6 +786,48 @@ export declare const entryContentTypeToFormatMap: {
|
|
|
721
786
|
*/
|
|
722
787
|
readonly type: "ASCII";
|
|
723
788
|
};
|
|
789
|
+
/**
|
|
790
|
+
* @deprecated It is unknown when this was removed, it was found in a Windows 10 Edition Beta v0.15.0 world.
|
|
791
|
+
*
|
|
792
|
+
* @todo Add a description for this.
|
|
793
|
+
*/
|
|
794
|
+
readonly LevelSpawnWasFixed: {
|
|
795
|
+
/**
|
|
796
|
+
* The format type of the data.
|
|
797
|
+
*/
|
|
798
|
+
readonly type: "UTF-8";
|
|
799
|
+
/**
|
|
800
|
+
* The default value to use when initializing a new entry.
|
|
801
|
+
*
|
|
802
|
+
* Value:
|
|
803
|
+
* ```typescript
|
|
804
|
+
* Buffer.from("True", "utf-8")
|
|
805
|
+
* ```
|
|
806
|
+
*/
|
|
807
|
+
readonly defaultValue: Buffer<ArrayBuffer>;
|
|
808
|
+
};
|
|
809
|
+
/**
|
|
810
|
+
* Stores the location of a lodestone compass.
|
|
811
|
+
*
|
|
812
|
+
* @todo Add a schema for this.
|
|
813
|
+
*/
|
|
814
|
+
readonly PositionTrackingDB: {
|
|
815
|
+
/**
|
|
816
|
+
* The format type of the data.
|
|
817
|
+
*/
|
|
818
|
+
readonly type: "NBT";
|
|
819
|
+
};
|
|
820
|
+
/**
|
|
821
|
+
* The last ID used for a lodestone compass.
|
|
822
|
+
*
|
|
823
|
+
* @todo Add a schema for this.
|
|
824
|
+
*/
|
|
825
|
+
readonly PositionTrackingLastId: {
|
|
826
|
+
/**
|
|
827
|
+
* The format type of the data.
|
|
828
|
+
*/
|
|
829
|
+
readonly type: "NBT";
|
|
830
|
+
};
|
|
724
831
|
/**
|
|
725
832
|
* The scoreboard data (ex. from the [`/scoreboard`](https://minecraft.wiki/w/Commands/scoreboard) command).
|
|
726
833
|
*
|
|
@@ -732,6 +839,18 @@ export declare const entryContentTypeToFormatMap: {
|
|
|
732
839
|
*/
|
|
733
840
|
readonly type: "NBT";
|
|
734
841
|
};
|
|
842
|
+
/**
|
|
843
|
+
* @deprecated It is unknown when this was removed, it was found in a Windows 10 Edition Beta v0.15.0 world.
|
|
844
|
+
*
|
|
845
|
+
* @todo Add a schema for this.
|
|
846
|
+
* @todo Add a description for this.
|
|
847
|
+
*/
|
|
848
|
+
readonly LegacyDimension: {
|
|
849
|
+
/**
|
|
850
|
+
* The format type of the data.
|
|
851
|
+
*/
|
|
852
|
+
readonly type: "NBT";
|
|
853
|
+
};
|
|
735
854
|
/**
|
|
736
855
|
* @todo Add a schema for this.
|
|
737
856
|
* @todo Add a description for this.
|
|
@@ -766,6 +885,17 @@ export declare const entryContentTypeToFormatMap: {
|
|
|
766
885
|
*/
|
|
767
886
|
readonly type: "NBT";
|
|
768
887
|
};
|
|
888
|
+
/**
|
|
889
|
+
* The content type of the `BiomeIdsTable` LevelDB key, which stores the numeric ID mappings for custom biomes.
|
|
890
|
+
*
|
|
891
|
+
* @see {@link NBTSchemas.nbtSchemas.BiomeIdsTable}
|
|
892
|
+
*/
|
|
893
|
+
readonly BiomeIdsTable: {
|
|
894
|
+
/**
|
|
895
|
+
* The format type of the data.
|
|
896
|
+
*/
|
|
897
|
+
readonly type: "NBT";
|
|
898
|
+
};
|
|
769
899
|
/**
|
|
770
900
|
* The content type of the `mobevents` LevelDB key, which stores what mob events are enabled or disabled.
|
|
771
901
|
*
|
|
@@ -827,8 +957,11 @@ export declare const entryContentTypeToFormatMap: {
|
|
|
827
957
|
readonly rawFileExtension: "dat";
|
|
828
958
|
};
|
|
829
959
|
/**
|
|
960
|
+
* Bounding boxes for structures, including structure spawns (such as a Pillager Outpost)
|
|
961
|
+
* and volumes where mobs cannot spawn through the normal biome-based means (such as
|
|
962
|
+
* Trial Chambers).
|
|
963
|
+
*
|
|
830
964
|
* @todo Figure out how to parse this.
|
|
831
|
-
* @todo Add a description for this.
|
|
832
965
|
*/
|
|
833
966
|
readonly AABBVolumes: {
|
|
834
967
|
/**
|
|
@@ -857,8 +990,11 @@ export declare const entryContentTypeToFormatMap: {
|
|
|
857
990
|
readonly defaultValue: Buffer<ArrayBufferLike>;
|
|
858
991
|
};
|
|
859
992
|
/**
|
|
860
|
-
*
|
|
861
|
-
*
|
|
993
|
+
* Stores the NBT metadata of all chunks. Maps the xxHash64 hash of NBT data
|
|
994
|
+
* to that NBT data, so that each chunk need only store 8 bytes instead of the entire
|
|
995
|
+
* NBT; most chunks have the same metadata.
|
|
996
|
+
*
|
|
997
|
+
* The first 4 bytes represent the number of entries as a 32-bit little-endian integer (it is unknown if it is signed or not).
|
|
862
998
|
*
|
|
863
999
|
* `Array.from(data).reduce((a, b, i, ar)=>[...a, ...(Array.from(Buffer.from("0a000008", "hex")).every((v, ib)=>v === ar[i + ib]) ? [i] : [])], [])`
|
|
864
1000
|
*
|
|
@@ -995,7 +1131,20 @@ export declare const entryContentTypeToFormatMap: {
|
|
|
995
1131
|
/**
|
|
996
1132
|
* The format type of the data.
|
|
997
1133
|
*/
|
|
998
|
-
readonly type: "
|
|
1134
|
+
readonly type: "custom";
|
|
1135
|
+
readonly resultType: "JSONNBT";
|
|
1136
|
+
readonly parse: (data: Buffer) => Promise<{
|
|
1137
|
+
type: "compound";
|
|
1138
|
+
value: {
|
|
1139
|
+
[hashHex: string]: NBT.NBT;
|
|
1140
|
+
};
|
|
1141
|
+
}>;
|
|
1142
|
+
readonly serialize: (data: {
|
|
1143
|
+
type: "compound";
|
|
1144
|
+
value: {
|
|
1145
|
+
[hashHex: string]: NBT.NBT | NBT.Compound;
|
|
1146
|
+
};
|
|
1147
|
+
}) => Buffer<ArrayBuffer>;
|
|
999
1148
|
};
|
|
1000
1149
|
/**
|
|
1001
1150
|
* @todo Figure out how to parse this. (It seems that each one just has a value of 1 (`0x31`). It also seems that the data is actually based on the key, which has an id that can be used with the realms API to get the corresponding data.)
|
|
@@ -1372,7 +1521,7 @@ export type DBEntryContentType = (typeof DBEntryContentTypes)[number];
|
|
|
1372
1521
|
/**
|
|
1373
1522
|
* A content type of a LevelDB chunk key entry.
|
|
1374
1523
|
*/
|
|
1375
|
-
export type DBChunkKeyEntryContentType = "Data3D" | "Version" | "Data2D" | "Data2DLegacy" | "SubChunkPrefix" | "LegacyTerrain" | "BlockEntity" | "Entity" | "PendingTicks" | "LegacyBlockExtraData" | "BiomeState" | "FinalizedState" | "ConversionData" | "BorderBlocks" | "HardcodedSpawners" | "RandomTicks" | "Checksums" | "
|
|
1524
|
+
export type DBChunkKeyEntryContentType = "Data3D" | "Version" | "Data2D" | "Data2DLegacy" | "SubChunkPrefix" | "LegacyTerrain" | "BlockEntity" | "Entity" | "PendingTicks" | "LegacyBlockExtraData" | "BiomeState" | "FinalizedState" | "ConversionData" | "BorderBlocks" | "HardcodedSpawners" | "RandomTicks" | "Checksums" | "GenerationSeed" | "GeneratedPreCavesAndCliffsBlending" | "BlendingBiomeHeight" | "MetaDataHash" | "BlendingData" | "ActorDigestVersion" | "LegacyVersion" | "AABBVolumes";
|
|
1376
1525
|
/**
|
|
1377
1526
|
* Parses an integer from a buffer gives the number of bytes, endianness, signedness and offset.
|
|
1378
1527
|
*
|
|
@@ -1514,6 +1663,8 @@ export declare function getContentTypeFromDBKey(key: Buffer): DBEntryContentType
|
|
|
1514
1663
|
/**
|
|
1515
1664
|
* Gets the biome type from its ID.
|
|
1516
1665
|
*
|
|
1666
|
+
* Only works with vanilla biomes.
|
|
1667
|
+
*
|
|
1517
1668
|
* @param id The ID of the biome.
|
|
1518
1669
|
* @returns The biome type.
|
|
1519
1670
|
*/
|
|
@@ -1521,6 +1672,8 @@ export declare function getBiomeTypeFromID(id: number): keyof (typeof BiomeData)
|
|
|
1521
1672
|
/**
|
|
1522
1673
|
* Gets the biome ID from its type.
|
|
1523
1674
|
*
|
|
1675
|
+
* Only works with vanilla biomes.
|
|
1676
|
+
*
|
|
1524
1677
|
* @param type The type of the biome.
|
|
1525
1678
|
* @returns The biome ID.
|
|
1526
1679
|
*/
|