Added interface RuntimeDataDescriber

This commit is contained in:
Dylan K. Taylor
2023-02-16 16:23:32 +00:00
parent ceff230d73
commit c2f6d8139a
95 changed files with 395 additions and 331 deletions

View File

@@ -29,8 +29,7 @@ use pocketmine\block\utils\BannerPatternLayer;
use pocketmine\block\utils\DyeColor;
use pocketmine\data\bedrock\BannerPatternTypeIdMap;
use pocketmine\data\bedrock\DyeColorIdMap;
use pocketmine\data\runtime\RuntimeDataReader;
use pocketmine\data\runtime\RuntimeDataWriter;
use pocketmine\data\runtime\RuntimeDataDescriber;
use pocketmine\nbt\NBT;
use pocketmine\nbt\tag\CompoundTag;
use pocketmine\nbt\tag\ListTag;
@@ -64,7 +63,7 @@ class Banner extends ItemBlockWallOrFloor{
return $this;
}
protected function describeType(RuntimeDataReader|RuntimeDataWriter $w) : void{
protected function describeType(RuntimeDataDescriber $w) : void{
$w->dyeColor($this->color);
}