Function getContentTypeFromDBKey

  • Gets the content type of a LevelDB key.

    Parameters

    • key: Buffer

      The key to get the content type for, as a Buffer.

    Returns
        | "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 of the key.