Separate writable parts of RegionWorldProvider into WritableRegionWorldProvider

This commit is contained in:
Dylan K. Taylor
2021-04-15 15:20:57 +01:00
parent e6fb6b1f27
commit 08f0c9a244
5 changed files with 58 additions and 24 deletions

View File

@ -31,10 +31,6 @@ use pocketmine\world\format\SubChunk;
class Anvil extends RegionWorldProvider{
use LegacyAnvilChunkTrait;
protected function serializeSubChunk(SubChunk $subChunk) : CompoundTag{
throw new \RuntimeException("Unsupported");
}
protected function deserializeSubChunk(CompoundTag $subChunk) : SubChunk{
return new SubChunk(BlockLegacyIds::AIR << 4, [SubChunkConverter::convertSubChunkYZX(
self::readFixedSizeByteArray($subChunk, "Blocks", 4096),