mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-20 16:00:20 +00:00
TickingChunkLoader: use native return types
This commit is contained in:
parent
cdeedbad8b
commit
adbc58f326
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user