Added API to allow flagging an entity not to be saved to disk when its chunk is saved (#1452)

This commit is contained in:
Dylan K. Taylor
2017-10-11 16:09:08 +01:00
committed by GitHub
parent 7b1bfc0520
commit be2d134994
6 changed files with 55 additions and 20 deletions

View File

@ -3415,6 +3415,14 @@ class Player extends Human implements CommandSender, ChunkLoader, IPlayer{
return [];
}
public function canSaveWithChunk() : bool{
return false;
}
public function setCanSaveWithChunk(bool $value) : void{
throw new \BadMethodCallException("Players can't be saved with chunks");
}
/**
* Handles player data saving
*