PocketMine-MP 5.15.1 git-08c6e63aac45a450fe3b437616ee8aa2500e04e2
pocketmine\player\PlayerInfo Class Reference
+ Inheritance diagram for pocketmine\player\PlayerInfo:
+ Collaboration diagram for pocketmine\player\PlayerInfo:

Public Member Functions

 __construct (private string $username, private UuidInterface $uuid, private Skin $skin, private string $locale, private array $extraData=[])
 getExtraData ()
 getLocale ()
 getSkin ()
 getUsername ()
 getUuid ()

Detailed Description

Encapsulates data needed to create a player.

Definition at line 33 of file PlayerInfo.php.

Constructor & Destructor Documentation

◆ __construct()

pocketmine\player\PlayerInfo::__construct ( private string  $username,
private UuidInterface  $uuid,
private Skin  $skin,
private string  $locale,
private array  $extraData = [] 
mixed[]$extraData@phpstan-param array<string, mixed> $extraData

Definition at line 38 of file PlayerInfo.php.

References pocketmine\utils\TextFormat\clean().

+ Here is the call graph for this function:

Member Function Documentation

◆ getExtraData()

pocketmine\player\PlayerInfo::getExtraData ( )
mixed[] @phpstan-return array<string, mixed>

Definition at line 68 of file PlayerInfo.php.

◆ getLocale()

pocketmine\player\PlayerInfo::getLocale ( )

Definition at line 60 of file PlayerInfo.php.

◆ getSkin()

pocketmine\player\PlayerInfo::getSkin ( )

Definition at line 56 of file PlayerInfo.php.

◆ getUsername()

pocketmine\player\PlayerInfo::getUsername ( )

Definition at line 48 of file PlayerInfo.php.

◆ getUuid()

pocketmine\player\PlayerInfo::getUuid ( )

Definition at line 52 of file PlayerInfo.php.

The documentation for this class was generated from the following file: