PocketMine-MP 5.11.1 git-db894e3a4a5bb9a80b3ac07ac91f58bdaf15176a
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 = [] 
)
Parameters
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 ( )
Returns
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: