Level: move getHeightMap() to be more consistent

This commit is contained in:
Dylan K. Taylor 2018-05-29 11:08:14 +01:00
parent 1d8b77f16e
commit 353a1d69db

View File

@ -2217,20 +2217,20 @@ class Level implements ChunkManager, Metadatable{
/**
* @param int $x
* @param int $z
*
* @return int
* @param int $biomeId
*/
public function getHeightMap(int $x, int $z) : int{
return $this->getChunk($x >> 4, $z >> 4, true)->getHeightMap($x & 0x0f, $z & 0x0f);
public function setBiomeId(int $x, int $z, int $biomeId){
$this->getChunk($x >> 4, $z >> 4, true)->setBiomeId($x & 0x0f, $z & 0x0f, $biomeId);
}
/**
* @param int $x
* @param int $z
* @param int $biomeId
*
* @return int
*/
public function setBiomeId(int $x, int $z, int $biomeId){
$this->getChunk($x >> 4, $z >> 4, true)->setBiomeId($x & 0x0f, $z & 0x0f, $biomeId);
public function getHeightMap(int $x, int $z) : int{
return $this->getChunk($x >> 4, $z >> 4, true)->getHeightMap($x & 0x0f, $z & 0x0f);
}
/**