PocketMine-MP 5.23.3 git-f7687af337d001ddbcc47b8e773f014a33faa662
Loading...
Searching...
No Matches
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.

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: