Level: rename getName() to getDisplayName()

This commit is contained in:
Dylan K. Taylor
2019-01-17 16:46:56 +00:00
parent 76f1ee1827
commit e341f3dce2
9 changed files with 15 additions and 14 deletions

View File

@ -2803,16 +2803,17 @@ class Level implements ChunkManager, Metadatable{
}
/**
* Returns the Level name
* Returns the Level display name.
* WARNING: This is NOT guaranteed to be unique. Multiple levels at runtime may share the same display name.
*
* @return string
*/
public function getName() : string{
public function getDisplayName() : string{
return $this->displayName;
}
/**
* Returns the Level folder name
* Returns the Level folder name. This will not change at runtime and will be unique to a level per runtime.
*
* @return string
*/