PocketMine-MP 5.21.2 git-a6534ecbbbcf369264567d27e5ed70f7f5be9816
|
Public Member Functions | |
__construct (private string $path) | |
hasData (string $name) | |
loadData (string $name) | |
saveData (string $name, CompoundTag $data) | |
Stores player data in a single .dat file per player. Each file is gzipped big-endian NBT.
Definition at line 44 of file DatFilePlayerDataProvider.php.
pocketmine\player\DatFilePlayerDataProvider::__construct | ( | private string | $path | ) |
Definition at line 46 of file DatFilePlayerDataProvider.php.
pocketmine\player\DatFilePlayerDataProvider::hasData | ( | string | $name | ) |
Returns whether there are any data associated with the given player name.
Implements pocketmine\player\PlayerDataProvider.
Definition at line 59 of file DatFilePlayerDataProvider.php.
pocketmine\player\DatFilePlayerDataProvider::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
PlayerDataLoadException |
Implements pocketmine\player\PlayerDataProvider.
Definition at line 63 of file DatFilePlayerDataProvider.php.
pocketmine\player\DatFilePlayerDataProvider::saveData | ( | string | $name, |
CompoundTag | $data ) |
Saves data for the give player name.
PlayerDataSaveException |
Implements pocketmine\player\PlayerDataProvider.
Definition at line 91 of file DatFilePlayerDataProvider.php.