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

Exceptions
PlayerDataLoadException

Implemented in pocketmine\player\DatFilePlayerDataProvider.

◆ saveData()

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

Saves data for the give player name.

Exceptions
PlayerDataSaveException

Implemented in pocketmine\player\DatFilePlayerDataProvider.


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