39 private string $generatorClass = Normal::class;
41 private int $difficulty = World::DIFFICULTY_NORMAL;
42 private string $generatorOptions =
"";
45 public function __construct(){
46 $this->seed = random_int(Limits::INT32_MIN, Limits::INT32_MAX);
47 $this->spawnPosition =
new Vector3(256, 70, 256);
50 public static function create() :
self{
63 $this->generatorClass = $generatorClass;
67 public function getSeed() : int{ return $this->seed; }
70 public function setSeed(
int $seed) : self{
75 public function getDifficulty() : int{ return $this->difficulty; }
79 $this->difficulty = $difficulty;
83 public function getGeneratorOptions() : string{ return $this->generatorOptions; }
87 $this->generatorOptions = $generatorOptions;
91 public function getSpawnPosition() :
Vector3{ return $this->spawnPosition; }
95 $this->spawnPosition = $spawnPosition;