MinecraftProfile
in package
Represents a Minecraft profile.
Tags
Table of Contents
Properties
- $_properties : array<string|int, mixed>
- $_username : string
- $_uuid : string
Methods
- __construct() : mixed
- getProfileAsArray() : array<string|int, mixed>
- getProperties() : array<string|int, mixed>
- getUsername() : string
- getUUID() : string
Properties
$_properties
private
array<string|int, mixed>
$_properties
$_username
private
string
$_username
$_uuid
private
string
$_uuid
Methods
__construct()
public
__construct(string $username, string $uuid[, array<string|int, mixed> $properties = [] ]) : mixed
Parameters
- $username : string
-
The player's username.
- $uuid : string
-
The player's UUID.
- $properties : array<string|int, mixed> = []
-
The player's properties specified on their Mojang profile.
getProfileAsArray()
public
getProfileAsArray() : array<string|int, mixed>
Return values
array<string|int, mixed> —Returns an array with keys of 'properties, usernname and uuid'.
getProperties()
public
getProperties() : array<string|int, mixed>
Return values
array<string|int, mixed> —The player's properties listed on their mojang profile.
getUsername()
public
getUsername() : string
Return values
string —The player's username.
getUUID()
public
getUUID() : string
Return values
string —The player's UUID.