22declare(strict_types=1);
24namespace pocketmine\data\bedrock\block\upgrade\model;
35 public ?array $oldState;
53 public ?array $newState;
60 public array $copiedState;
71 $this->oldState = count($oldState) === 0 ? null : $oldState;
73 $this->newFlattenedName = $newNameRule;
75 $this->newName = $newNameRule;
77 $this->newState = count($newState) === 0 ? null : $newState;
78 $this->copiedState = $copiedState;
__construct(array $oldState, string|BlockStateUpgradeSchemaModelFlattenedName $newNameRule, array $newState, array $copiedState)
BlockStateUpgradeSchemaModelFlattenedName $newFlattenedName