22declare(strict_types=1);
24namespace pocketmine\data\bedrock\block\upgrade;
35 public array $renamedIds = [];
41 public array $addedProperties = [];
47 public array $removedProperties = [];
53 public array $renamedProperties = [];
59 public array $remappedPropertyValues = [];
65 public array $remappedStates = [];
67 public readonly
int $versionId;
69 public function __construct(
70 public readonly
int $maxVersionMajor,
71 public readonly
int $maxVersionMinor,
72 public readonly
int $maxVersionPatch,
73 public readonly
int $maxVersionRevision,
76 $this->versionId = ($this->maxVersionMajor << 24) | ($this->maxVersionMinor << 16) | ($this->maxVersionPatch << 8) | $this->maxVersionRevision;
84 return $this->versionId;
87 public function getSchemaId() : int{ return $this->schemaId; }
89 public function isEmpty() : bool{
92 $this->addedProperties,
93 $this->removedProperties,
94 $this->renamedProperties,
95 $this->remappedPropertyValues,
96 $this->remappedStates,
98 if(count($list) !== 0){