mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-06 17:59:48 +00:00
Rename LegacyBlockStateMapper -> BlockIdMetaUpgrader
this more accurately describes what it's used for.
This commit is contained in:
@ -30,7 +30,7 @@ use pocketmine\nbt\tag\CompoundTag;
|
||||
final class BlockDataUpgrader{
|
||||
|
||||
public function __construct(
|
||||
private LegacyBlockStateMapper $legacyBlockStateMapper,
|
||||
private BlockIdMetaUpgrader $legacyBlockStateMapper,
|
||||
private BlockStateUpgrader $blockStateUpgrader
|
||||
){}
|
||||
|
||||
|
@ -30,7 +30,7 @@ use pocketmine\utils\BinaryStream;
|
||||
/**
|
||||
* Handles translating legacy 1.12 block ID/meta into modern blockstates.
|
||||
*/
|
||||
final class LegacyBlockStateMapper{
|
||||
final class BlockIdMetaUpgrader{
|
||||
/**
|
||||
* @param BlockStateData[][] $mappingTable
|
||||
* @phpstan-param array<string, array<int, BlockStateData>> $mappingTable
|
Reference in New Issue
Block a user