World: document getFullLight() and getFullLightAt()

This commit is contained in:
Dylan K. Taylor 2021-04-18 20:14:16 +01:00
parent f29ababf8d
commit 51b0685881
No known key found for this signature in database
GPG Key ID: 8927471A91CAFD3D

View File

@ -1272,10 +1272,18 @@ class World implements ChunkManager{
return $this->skyLightReduction;
}
/**
* Returns the highest available level of any type of light at the given coordinates, adjusted for the current
* weather and time of day.
*/
public function getFullLight(Vector3 $pos) : int{
return $this->getFullLightAt($pos->x, $pos->y, $pos->z);
}
/**
* Returns the highest available level of any type of light at the given coordinates, adjusted for the current
* weather and time of day.
*/
public function getFullLightAt(int $x, int $y, int $z) : int{
$skyLight = $this->getRealBlockSkyLightAt($x, $y, $z);
if($skyLight < 15){