mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-06 17:59:48 +00:00
Casting cleanup and removed some 32-bit string-int leftovers
This commit is contained in:
@ -84,19 +84,19 @@ abstract class BaseLevelProvider implements LevelProvider{
|
||||
return (string) $this->levelData["LevelName"];
|
||||
}
|
||||
|
||||
public function getTime(){
|
||||
public function getTime() : int{
|
||||
return $this->levelData["Time"];
|
||||
}
|
||||
|
||||
public function setTime($value){
|
||||
public function setTime(int $value){
|
||||
$this->levelData->Time = new LongTag("Time", $value);
|
||||
}
|
||||
|
||||
public function getSeed(){
|
||||
public function getSeed() : int{
|
||||
return $this->levelData["RandomSeed"];
|
||||
}
|
||||
|
||||
public function setSeed($value){
|
||||
public function setSeed(int $value){
|
||||
$this->levelData->RandomSeed = new LongTag("RandomSeed", $value);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user