Function getKeysOfType

  • Gets the keys from the LevelDB with a specific content type.

    Type Parameters

    • T extends
          | "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"
          | "LegacyOverworld"
          | "LegacyNether"
          | "LegacyTheEnd"
          | "MVillages"
          | "Villages"
          | "LevelSpawnWasFixed"
          | "PositionTrackingDB"
          | "PositionTrackingLastId"
          | "Scoreboard"
          | "Overworld"
          | "Nether"
          | "TheEnd"
          | "AutonomousEntities"
          | "BiomeData"
          | "BiomeIdsTable"
          | "MobEvents"
          | "DynamicProperties"
          | "LevelChunkMetaDataDictionary"
          | "RealmsStoriesData"
          | "LevelDat"
          | "ForcedWorldCorruption"
          | "Unknown"

      The content type to look for.

    Parameters

    Returns Promise<Buffer<ArrayBuffer>[]>

    The keys from the LevelDB with the specified content type, the keys are in Buffer format, this is because some keys contain binary data like chunk indices.

  • Gets the keys from the list of LevelDB keys with a specific content type.

    Type Parameters

    • T extends
          | "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"
          | "LegacyOverworld"
          | "LegacyNether"
          | "LegacyTheEnd"
          | "MVillages"
          | "Villages"
          | "LevelSpawnWasFixed"
          | "PositionTrackingDB"
          | "PositionTrackingLastId"
          | "Scoreboard"
          | "Overworld"
          | "Nether"
          | "TheEnd"
          | "AutonomousEntities"
          | "BiomeData"
          | "BiomeIdsTable"
          | "MobEvents"
          | "DynamicProperties"
          | "LevelChunkMetaDataDictionary"
          | "RealmsStoriesData"
          | "LevelDat"
          | "ForcedWorldCorruption"
          | "Unknown"

      The content type to look for.

    • TArrayBuffer extends ArrayBufferLike = ArrayBufferLike

      The type of the buffers.

    Parameters

    Returns Buffer<TArrayBuffer>[]

    The keys from the provided LevelDB keys array with the specified content type, the keys are in Buffer format, this is because some keys contain binary data like chunk indices.