PocketMine-MP 5.23.3 git-f7687af337d001ddbcc47b8e773f014a33faa662
Loading...
Searching...
No Matches
pocketmine\world\light\SkyLightUpdate Class Reference
+ Inheritance diagram for pocketmine\world\light\SkyLightUpdate:
+ Collaboration diagram for pocketmine\world\light\SkyLightUpdate:

Public Member Functions

 __construct (SubChunkExplorer $subChunkExplorer, array $lightFilters, private array $directSkyLightBlockers)
 
 execute ()
 
 recalculateChunk (int $chunkX, int $chunkZ)
 
 recalculateNode (int $x, int $y, int $z)
 
 setAndUpdateLight (int $x, int $y, int $z, int $newLevel)
 

Public Attributes

const BASE_LIGHT_FILTER = 1
 

Protected Member Functions

 computeRemoveLight (int $x, int $y, int $z, int $oldAdjacentLevel, LightPropagationContext $context, LightArray $lightArray)
 
 computeSpreadLight (int $x, int $y, int $z, int $newAdjacentLevel, LightPropagationContext $context, LightArray $lightArray, SubChunk $subChunk, int $side)
 
 getCurrentLightArray ()
 
 getEffectiveLight (int $x, int $y, int $z)
 
 getHighestAdjacentLight (int $x, int $y, int $z)
 

Protected Attributes

array $updateNodes = []
 

Detailed Description

Definition at line 35 of file SkyLightUpdate.php.

Constructor & Destructor Documentation

◆ __construct()

pocketmine\world\light\SkyLightUpdate::__construct ( SubChunkExplorer $subChunkExplorer,
array $lightFilters,
private array $directSkyLightBlockers )
Parameters
int[]$lightFilters
true[]$directSkyLightBlockers@phpstan-param array<int, int> $lightFilters @phpstan-param array<int, true> $directSkyLightBlockers

Definition at line 42 of file SkyLightUpdate.php.

Member Function Documentation

◆ computeRemoveLight()

pocketmine\world\light\LightUpdate::computeRemoveLight ( int $x,
int $y,
int $z,
int $oldAdjacentLevel,
LightPropagationContext $context,
LightArray $lightArray )
protectedinherited

Definition at line 184 of file LightUpdate.php.

◆ computeSpreadLight()

pocketmine\world\light\LightUpdate::computeSpreadLight ( int $x,
int $y,
int $z,
int $newAdjacentLevel,
LightPropagationContext $context,
LightArray $lightArray,
SubChunk $subChunk,
int $side )
protectedinherited

Definition at line 207 of file LightUpdate.php.

◆ execute()

pocketmine\world\light\LightUpdate::execute ( )
inherited

Definition at line 107 of file LightUpdate.php.

◆ getCurrentLightArray()

pocketmine\world\light\SkyLightUpdate::getCurrentLightArray ( )
protected

Reimplemented from pocketmine\world\light\LightUpdate.

Definition at line 50 of file SkyLightUpdate.php.

◆ getEffectiveLight()

pocketmine\world\light\SkyLightUpdate::getEffectiveLight ( int $x,
int $y,
int $z )
protected

Reimplemented from pocketmine\world\light\LightUpdate.

Definition at line 54 of file SkyLightUpdate.php.

◆ getHighestAdjacentLight()

pocketmine\world\light\LightUpdate::getHighestAdjacentLight ( int $x,
int $y,
int $z )
protectedinherited

Definition at line 71 of file LightUpdate.php.

◆ recalculateChunk()

pocketmine\world\light\SkyLightUpdate::recalculateChunk ( int $chunkX,
int $chunkZ )

Scans for all light sources in the target chunk and adds them to the propagation queue. This erases preexisting light in the chunk.

Reimplemented from pocketmine\world\light\LightUpdate.

Definition at line 101 of file SkyLightUpdate.php.

◆ recalculateNode()

pocketmine\world\light\SkyLightUpdate::recalculateNode ( int $x,
int $y,
int $z )

Reimplemented from pocketmine\world\light\LightUpdate.

Definition at line 62 of file SkyLightUpdate.php.

◆ setAndUpdateLight()

pocketmine\world\light\LightUpdate::setAndUpdateLight ( int $x,
int $y,
int $z,
int $newLevel )
inherited

Definition at line 81 of file LightUpdate.php.

Member Data Documentation

◆ $updateNodes

array pocketmine\world\light\LightUpdate::$updateNodes = []
protectedinherited

Definition at line 43 of file LightUpdate.php.

◆ BASE_LIGHT_FILTER

const pocketmine\world\light\LightUpdate::BASE_LIGHT_FILTER = 1
inherited

Definition at line 37 of file LightUpdate.php.


The documentation for this class was generated from the following file: