Casting cleanup and removed some 32-bit string-int leftovers

This commit is contained in:
Dylan K. Taylor
2017-08-17 11:24:49 +01:00
parent 77376d3e33
commit 5b4035253b
6 changed files with 25 additions and 24 deletions

View File

@ -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);
}