Documentation

MinecraftProfile
in package

Represents a Minecraft profile.

Tags
see
ProfileUtils
author

Daniel Fanara

author

Samerton

version
2.0.0-pr13
license

MIT

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

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.


        
On this page

Search results