PocketMine-MP/src/world/format/io/leveldb/ChunkDataKey.php
Dylan K. Taylor f5a1a0c9cb
ÂInsert PM data version into blockstates, chunks, entities, tiles and level.dat
this information will allow us to correct for any bugs introduced by past versions.

however, we still need to propagate this information to permit actually using it when loading data.
2023-05-29 16:32:24 +01:00

58 lines
1.9 KiB
PHP

<?php
/*
*
* ____ _ _ __ __ _ __ __ ____
* | _ \ ___ ___| | _____| |_| \/ (_)_ __ ___ | \/ | _ \
* | |_) / _ \ / __| |/ / _ \ __| |\/| | | '_ \ / _ \_____| |\/| | |_) |
* | __/ (_) | (__| < __/ |_| | | | | | | | __/_____| | | | __/
* |_| \___/ \___|_|\_\___|\__|_| |_|_|_| |_|\___| |_| |_|_|
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* @author PocketMine Team
* @link http://www.pocketmine.net/
*
*
*/
declare(strict_types=1);
namespace pocketmine\world\format\io\leveldb;
use pocketmine\VersionInfo;
final class ChunkDataKey{
private function __construct(){
//NOOP
}
public const HEIGHTMAP_AND_3D_BIOMES = "\x2b";
public const NEW_VERSION = "\x2c"; //since 1.16.100?
public const HEIGHTMAP_AND_2D_BIOMES = "\x2d"; //obsolete since 1.18
public const HEIGHTMAP_AND_2D_BIOME_COLORS = "\x2e"; //obsolete since 1.0
public const SUBCHUNK = "\x2f";
public const LEGACY_TERRAIN = "\x30"; //obsolete since 1.0
public const BLOCK_ENTITIES = "\x31";
public const ENTITIES = "\x32";
public const PENDING_SCHEDULED_TICKS = "\x33";
public const LEGACY_BLOCK_EXTRA_DATA = "\x34"; //obsolete since 1.2.13
public const BIOME_STATES = "\x35"; //TODO: is this still applicable to 1.18.0?
public const FINALIZATION = "\x36";
public const CONVERTER_TAG = "\x37"; //???
public const BORDER_BLOCKS = "\x38";
public const HARDCODED_SPAWNERS = "\x39";
public const PENDING_RANDOM_TICKS = "\x3a";
public const XXHASH_CHECKSUMS = "\x3b"; //obsolete since 1.18
public const GENERATION_SEED = "\x3c";
public const GENERATED_BEFORE_CNC_BLENDING = "\x3d";
public const OLD_VERSION = "\x76";
public const PM_DATA_VERSION = VersionInfo::TAG_WORLD_DATA_VERSION;
}