World: remove setBlockLightAt() and setBlockSkyLightAt()

This commit is contained in:
Dylan K. Taylor 2019-10-23 21:25:29 +01:00
parent a3b73d95a7
commit f01b7b74ba

View File

@ -1966,18 +1966,6 @@ class World implements ChunkManager{
return $this->getChunk($x >> 4, $z >> 4, true)->getBlockSkyLight($x & 0x0f, $y, $z & 0x0f);
}
/**
* Sets the raw block skylight level.
*
* @param int $x
* @param int $y
* @param int $z
* @param int $level 0-15
*/
public function setBlockSkyLightAt(int $x, int $y, int $z, int $level) : void{
$this->getChunk($x >> 4, $z >> 4, true)->setBlockSkyLight($x & 0x0f, $y, $z & 0x0f, $level & 0x0f);
}
/**
* Gets the raw block light level
*
@ -1991,18 +1979,6 @@ class World implements ChunkManager{
return $this->getChunk($x >> 4, $z >> 4, true)->getBlockLight($x & 0x0f, $y, $z & 0x0f);
}
/**
* Sets the raw block light level.
*
* @param int $x
* @param int $y
* @param int $z
* @param int $level 0-15
*/
public function setBlockLightAt(int $x, int $y, int $z, int $level) : void{
$this->getChunk($x >> 4, $z >> 4, true)->setBlockLight($x & 0x0f, $y, $z & 0x0f, $level & 0x0f);
}
/**
* @param int $x
* @param int $z