mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-07-01 07:39:57 +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 */
|
/** @var string */
|
||||||
private $preset;
|
private $preset;
|
||||||
|
|
||||||
public function getName() : string{
|
|
||||||
return "flat";
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param ChunkManager $level
|
* @param ChunkManager $level
|
||||||
* @param int $seed
|
* @param int $seed
|
||||||
|
@ -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;
|
||||||
}
|
}
|
||||||
|
@ -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);
|
||||||
|
|
||||||
|
@ -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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user