Generator: remove useless function getName()

This commit is contained in:
Dylan K. Taylor 2019-04-04 16:43:04 +01:00
parent e6a1f0eb8d
commit 5a989d82bb
4 changed files with 0 additions and 14 deletions

View File

@ -52,10 +52,6 @@ class Flat extends Generator{
/** @var string */ /** @var string */
private $preset; private $preset;
public function getName() : string{
return "flat";
}
/** /**
* @param ChunkManager $level * @param ChunkManager $level
* @param int $seed * @param int $seed

View File

@ -85,7 +85,5 @@ abstract class Generator{
return $this->options; return $this->options;
} }
abstract public function getName() : string;
abstract public function getSpawn() : Vector3; abstract public function getSpawn() : Vector3;
} }

View File

@ -79,10 +79,6 @@ class Nether extends Generator{
$this->populators[] = $ores;*/ $this->populators[] = $ores;*/
} }
public function getName() : string{
return "nether";
}
public function generateChunk(int $chunkX, int $chunkZ) : void{ public function generateChunk(int $chunkX, int $chunkZ) : void{
$this->random->setSeed(0xdeadbeef ^ ($chunkX << 8) ^ $chunkZ ^ $this->seed); $this->random->setSeed(0xdeadbeef ^ ($chunkX << 8) ^ $chunkZ ^ $this->seed);

View File

@ -150,10 +150,6 @@ class Normal extends Generator{
} }
} }
public function getName() : string{
return "normal";
}
private function pickBiome(int $x, int $z) : Biome{ private function pickBiome(int $x, int $z) : Biome{
$hash = $x * 2345803 ^ $z * 9236449 ^ $this->seed; $hash = $x * 2345803 ^ $z * 9236449 ^ $this->seed;
$hash *= $hash + 223; $hash *= $hash + 223;