break the hard cycle between mcpe\handler and mcpe\protocol

preparing to move mcpe\protocol to a separate library
This commit is contained in:
Dylan K. Taylor
2020-04-23 15:23:20 +01:00
parent 18d48869a0
commit 1b26cf1df9
147 changed files with 462 additions and 291 deletions

View File

@ -28,7 +28,6 @@ namespace pocketmine\network\mcpe\protocol;
use pocketmine\math\Vector3;
use pocketmine\nbt\tag\ListTag;
use pocketmine\nbt\TreeRoot;
use pocketmine\network\mcpe\handler\PacketHandler;
use pocketmine\network\mcpe\protocol\types\PlayerPermissions;
use pocketmine\network\mcpe\protocol\types\RuntimeBlockMapping;
use pocketmine\network\mcpe\serializer\NetworkBinaryStream;
@ -322,7 +321,7 @@ class StartGamePacket extends DataPacket implements ClientboundPacket{
return $stream->getBuffer();
}
public function handle(PacketHandler $handler) : bool{
public function handle(PacketHandlerInterface $handler) : bool{
return $handler->handleStartGame($this);
}
}