mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-21 08:17:34 +00:00
Generator: remove useless function getName()
This commit is contained in:
parent
e6a1f0eb8d
commit
5a989d82bb
@ -52,10 +52,6 @@ class Flat extends Generator{
|
||||
/** @var string */
|
||||
private $preset;
|
||||
|
||||
public function getName() : string{
|
||||
return "flat";
|
||||
}
|
||||
|
||||
/**
|
||||
* @param ChunkManager $level
|
||||
* @param int $seed
|
||||
|
@ -85,7 +85,5 @@ abstract class Generator{
|
||||
return $this->options;
|
||||
}
|
||||
|
||||
abstract public function getName() : string;
|
||||
|
||||
abstract public function getSpawn() : Vector3;
|
||||
}
|
||||
|
@ -79,10 +79,6 @@ class Nether extends Generator{
|
||||
$this->populators[] = $ores;*/
|
||||
}
|
||||
|
||||
public function getName() : string{
|
||||
return "nether";
|
||||
}
|
||||
|
||||
public function generateChunk(int $chunkX, int $chunkZ) : void{
|
||||
$this->random->setSeed(0xdeadbeef ^ ($chunkX << 8) ^ $chunkZ ^ $this->seed);
|
||||
|
||||
|
@ -150,10 +150,6 @@ class Normal extends Generator{
|
||||
}
|
||||
}
|
||||
|
||||
public function getName() : string{
|
||||
return "normal";
|
||||
}
|
||||
|
||||
private function pickBiome(int $x, int $z) : Biome{
|
||||
$hash = $x * 2345803 ^ $z * 9236449 ^ $this->seed;
|
||||
$hash *= $hash + 223;
|
||||
|
Loading…
x
Reference in New Issue
Block a user