mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-07 18:32:55 +00:00
Extract a Packet interface from DataPacket
this is in preparation for clientbound/serverbound packet separation. I did this already on another branch, but the changeset was dependent on a massive refactor to split apart packets and binarystream which i'm still not fully happy with.
This commit is contained in:
@ -24,7 +24,7 @@ declare(strict_types=1);
|
||||
namespace pocketmine\level\particle;
|
||||
|
||||
use pocketmine\math\Vector3;
|
||||
use pocketmine\network\mcpe\protocol\DataPacket;
|
||||
use pocketmine\network\mcpe\protocol\Packet;
|
||||
|
||||
abstract class Particle{
|
||||
|
||||
@ -86,7 +86,7 @@ abstract class Particle{
|
||||
/**
|
||||
* @param Vector3 $pos
|
||||
*
|
||||
* @return DataPacket|DataPacket[]
|
||||
* @return Packet|Packet[]
|
||||
*/
|
||||
abstract public function encode(Vector3 $pos);
|
||||
|
||||
|
Reference in New Issue
Block a user