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

@ -37,7 +37,7 @@ class BlockMetadataStore extends MetadataStore{
private function disambiguate(Block $block, string $metadataKey) : string{
if($block->getLevel() !== $this->owningLevel){
throw new \InvalidStateException("Block does not belong to world " . $this->owningLevel->getName());
throw new \InvalidStateException("Block does not belong to world " . $this->owningLevel->getDisplayName());
}
return $block->x . ":" . $block->y . ":" . $block->z . ":" . $metadataKey;
}

View File

@ -30,7 +30,7 @@ use function strtolower;
class LevelMetadataStore extends MetadataStore{
private function disambiguate(Level $level, string $metadataKey) : string{
return strtolower($level->getName()) . ":" . $metadataKey;
return strtolower($level->getFolderName()) . ":" . $metadataKey;
}
public function getMetadata(Level $subject, string $metadataKey){