TickingChunkLoader: use native return types

This commit is contained in:
Dylan K. Taylor 2021-03-26 22:55:48 +00:00
parent cdeedbad8b
commit adbc58f326
No known key found for this signature in database
GPG Key ID: 8927471A91CAFD3D
2 changed files with 4 additions and 10 deletions

View File

@ -39,11 +39,11 @@ final class PlayerChunkLoader implements TickingChunkLoader{
$this->currentLocation = $currentLocation; $this->currentLocation = $currentLocation;
} }
public function getX(){ public function getX() : float{
return $this->currentLocation->getFloorX(); return $this->currentLocation->getFloorX();
} }
public function getZ(){ public function getZ() : float{
return $this->currentLocation->getFloorZ(); return $this->currentLocation->getFloorZ();
} }
} }

View File

@ -30,13 +30,7 @@ namespace pocketmine\world;
*/ */
interface TickingChunkLoader extends ChunkLoader{ interface TickingChunkLoader extends ChunkLoader{
/** public function getX() : float;
* @return float
*/
public function getX();
/** public function getZ() : float;
* @return float
*/
public function getZ();
} }