Documentation

PlayerInfo
in package

Encapsulates data needed to create a player.

Table of Contents

$extraData  : array<string|int, mixed>
$locale  : string
$skin  : Skin
$username  : string
$uuid  : UuidInterface
__construct()  : mixed
getExtraData()  : array<string|int, mixed>
getLocale()  : string
getSkin()  : Skin
getUsername()  : string
getUuid()  : UuidInterface

Properties

$extraData

private array<string|int, mixed> $extraData
Tags
phpstan-var

array<string, mixed>

Methods

__construct()

public __construct(string $username, UuidInterface $uuid, Skin $skin, string $locale[, array<string|int, mixed> $extraData = [] ]) : mixed
Parameters
$username : string
$uuid : UuidInterface
$skin : Skin
$locale : string
$extraData : array<string|int, mixed> = []
Tags
phpstan-param

array<string, mixed> $extraData

Return values
mixed

getExtraData()

public getExtraData() : array<string|int, mixed>
Tags
phpstan-return

array<string, mixed>

Return values
array<string|int, mixed>

getLocale()

public getLocale() : string
Return values
string

getUsername()

public getUsername() : string
Return values
string

Search results