mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-10-18 04:00:29 +00:00
TickingChunkLoader: use native return types
This commit is contained in:
@@ -39,11 +39,11 @@ final class PlayerChunkLoader implements TickingChunkLoader{
|
||||
$this->currentLocation = $currentLocation;
|
||||
}
|
||||
|
||||
public function getX(){
|
||||
public function getX() : float{
|
||||
return $this->currentLocation->getFloorX();
|
||||
}
|
||||
|
||||
public function getZ(){
|
||||
public function getZ() : float{
|
||||
return $this->currentLocation->getFloorZ();
|
||||
}
|
||||
}
|
||||
|
@@ -30,13 +30,7 @@ namespace pocketmine\world;
|
||||
*/
|
||||
interface TickingChunkLoader extends ChunkLoader{
|
||||
|
||||
/**
|
||||
* @return float
|
||||
*/
|
||||
public function getX();
|
||||
public function getX() : float;
|
||||
|
||||
/**
|
||||
* @return float
|
||||
*/
|
||||
public function getZ();
|
||||
public function getZ() : float;
|
||||
}
|
||||
|
Reference in New Issue
Block a user