Stub PalettedBlockArray functions that work with arrays

and workaround PHPStan stupidity
This commit is contained in:
Dylan K. Taylor
2025-01-08 01:48:15 +00:00
parent 4a83920db9
commit 5e0f03dff0
3 changed files with 18 additions and 2 deletions

View File

@ -0,0 +1,15 @@
<?php
namespace pocketmine\world\format;
final class PalettedBlockArray{
/**
* @param list<int> $palette
*/
public static function fromData(int $bitsPerBlock, string $wordArray, array $palette): PalettedBlockArray {}
/**
* @return list<int>
*/
public function getPalette(): array {}
}