mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-08-23 19:56:02 +00:00
67 lines
2.0 KiB
PHP
67 lines
2.0 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\data\bedrock;
|
|
|
|
use pocketmine\world\format\io\leveldb\ChunkVersion;
|
|
use pocketmine\world\format\io\leveldb\SubChunkVersion;
|
|
|
|
/**
|
|
* All version infos related to current Minecraft data version support
|
|
* These are mostly related to world storage but may also influence network stuff
|
|
*/
|
|
final class WorldDataVersions{
|
|
/**
|
|
* Bedrock version of the most recent backwards-incompatible change to blockstates.
|
|
*
|
|
* This is *NOT* the same as current game version. It should match the numbers in the
|
|
* newest blockstate upgrade schema used in BedrockBlockUpgradeSchema.
|
|
*/
|
|
public const BLOCK_STATES =
|
|
(1 << 24) | //major
|
|
(21 << 16) | //minor
|
|
(60 << 8) | //patch
|
|
(33); //revision
|
|
|
|
public const CHUNK = ChunkVersion::v1_21_40;
|
|
public const SUBCHUNK = SubChunkVersion::PALETTED_MULTI;
|
|
|
|
public const STORAGE = 10;
|
|
|
|
/**
|
|
* Highest NetworkVersion of Bedrock worlds currently supported by PocketMine-MP.
|
|
*
|
|
* This may be lower than the current protocol version if PocketMine-MP does not yet support features of the newer
|
|
* version. This allows the protocol to be updated independently of world format support.
|
|
*/
|
|
public const NETWORK = 827;
|
|
|
|
public const LAST_OPENED_IN = [
|
|
1, //major
|
|
21, //minor
|
|
100, //patch
|
|
23, //revision
|
|
0 //is beta
|
|
];
|
|
}
|