mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-30 23:29:54 +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;
|
$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();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -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();
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user