GenisysPro  for Minecraft PE/Windows 10 v1.1.x
Feature-rich server software for Minecraft PE and Windows 10 Edition
SkyLightUpdate Class Reference

Public Member Functions

 getLight (int $x, int $y, int $z)
 
 setLight (int $x, int $y, int $z, int $level)
 
- Public Member Functions inherited from LightUpdate
 __construct (Level $level)
 
 addSpreadNode (int $x, int $y, int $z)
 
 addRemoveNode (int $x, int $y, int $z, int $oldLight)
 
 setAndUpdateLight (int $x, int $y, int $z, int $newLevel)
 
 execute ()
 

Additional Inherited Members

- Protected Member Functions inherited from LightUpdate
 getLight (int $x, int $y, int $z)
 
 setLight (int $x, int $y, int $z, int $level)
 
 computeRemoveLight (int $x, int $y, int $z, int $oldAdjacentLevel)
 
 computeSpreadLight (int $x, int $y, int $z, int $newAdjacentLevel)
 
- Protected Attributes inherited from LightUpdate
 $level
 
 $spreadQueue
 
 $spreadVisited = []
 
 $removalQueue
 
 $removalVisited = []
 

Member Function Documentation

◆ getLight()

getLight ( int  $x,
int  $y,
int  $z 
)
25  : int
26  {
27  return $this->level->getBlockSkyLightAt($x, $y, $z);
28  }

◆ setLight()

setLight ( int  $x,
int  $y,
int  $z,
int  $level 
)
31  {
32  $this->level->setBlockSkyLightAt($x, $y, $z, $level);
33  }

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