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 $x
* @param int $z * @param int $z
* * @param int $biomeId
* @return int
*/ */
public function getHeightMap(int $x, int $z) : int{ public function setBiomeId(int $x, int $z, int $biomeId){
return $this->getChunk($x >> 4, $z >> 4, true)->getHeightMap($x & 0x0f, $z & 0x0f); $this->getChunk($x >> 4, $z >> 4, true)->setBiomeId($x & 0x0f, $z & 0x0f, $biomeId);
} }
/** /**
* @param int $x * @param int $x
* @param int $z * @param int $z
* @param int $biomeId *
* @return int
*/ */
public function setBiomeId(int $x, int $z, int $biomeId){ public function getHeightMap(int $x, int $z) : int{
$this->getChunk($x >> 4, $z >> 4, true)->setBiomeId($x & 0x0f, $z & 0x0f, $biomeId); return $this->getChunk($x >> 4, $z >> 4, true)->getHeightMap($x & 0x0f, $z & 0x0f);
} }
/** /**