mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-07-03 16:49:53 +00:00
World: document getFullLight() and getFullLightAt()
This commit is contained in:
parent
f29ababf8d
commit
51b0685881
@ -1272,10 +1272,18 @@ class World implements ChunkManager{
|
|||||||
return $this->skyLightReduction;
|
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{
|
public function getFullLight(Vector3 $pos) : int{
|
||||||
return $this->getFullLightAt($pos->x, $pos->y, $pos->z);
|
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{
|
public function getFullLightAt(int $x, int $y, int $z) : int{
|
||||||
$skyLight = $this->getRealBlockSkyLightAt($x, $y, $z);
|
$skyLight = $this->getRealBlockSkyLightAt($x, $y, $z);
|
||||||
if($skyLight < 15){
|
if($skyLight < 15){
|
||||||
|
Loading…
x
Reference in New Issue
Block a user