PocketMine-MP 5.15.1 git-5ef247620a7c6301a849b54e5ef1009217729fc8
pocketmine\player\PlayerDataProvider Interface Reference
+ Inheritance diagram for pocketmine\player\PlayerDataProvider:
+ Collaboration diagram for pocketmine\player\PlayerDataProvider:

Public Member Functions

 hasData (string $name)
 loadData (string $name)
 saveData (string $name, CompoundTag $data)

Detailed Description

Handles storage of player data. Implementations must treat player names in a case-insensitive manner.

Definition at line 31 of file PlayerDataProvider.php.

Member Function Documentation

◆ hasData()

pocketmine\player\PlayerDataProvider::hasData ( string  $name)

Returns whether there are any data associated with the given player name.

Implemented in pocketmine\player\DatFilePlayerDataProvider.

◆ loadData()

pocketmine\player\PlayerDataProvider::loadData ( string  $name)

Returns the data associated with the given player name, or null if there is no data. TODO: we need an async version of this


Implemented in pocketmine\player\DatFilePlayerDataProvider.

◆ saveData()

pocketmine\player\PlayerDataProvider::saveData ( string  $name,
CompoundTag  $data 

Saves data for the give player name.


Implemented in pocketmine\player\DatFilePlayerDataProvider.

The documentation for this interface was generated from the following file: