Drop pocketmine/uuid for ramsey/uuid

This commit is contained in:
Dylan K. Taylor
2021-03-16 23:03:00 +00:00
parent 6d622c4020
commit 72de45f0e9
24 changed files with 374 additions and 183 deletions

View File

@ -25,7 +25,7 @@ namespace pocketmine\player;
use pocketmine\entity\Skin;
use pocketmine\utils\TextFormat;
use pocketmine\uuid\UUID;
use Ramsey\Uuid\UuidInterface;
/**
* Encapsulates data needed to create a player.
@ -34,7 +34,7 @@ class PlayerInfo{
/** @var string */
private $username;
/** @var UUID */
/** @var UuidInterface */
private $uuid;
/** @var Skin */
private $skin;
@ -50,7 +50,7 @@ class PlayerInfo{
* @param mixed[] $extraData
* @phpstan-param array<string, mixed> $extraData
*/
public function __construct(string $username, UUID $uuid, Skin $skin, string $locale, array $extraData = []){
public function __construct(string $username, UuidInterface $uuid, Skin $skin, string $locale, array $extraData = []){
$this->username = TextFormat::clean($username);
$this->uuid = $uuid;
$this->skin = $skin;
@ -62,7 +62,7 @@ class PlayerInfo{
return $this->username;
}
public function getUuid() : UUID{
public function getUuid() : UuidInterface{
return $this->uuid;
}