World: remove getHeightMap() and setHeightMap()

these are too specialized to be of any use to plugin developers, and they are also misleading - plugin devs often think this refers to the highest block Y coordinate, but it doesn't.
This commit is contained in:
Dylan K. Taylor 2019-10-23 19:30:06 +01:00
parent eedc9eaee1
commit 21e9bca64a

View File

@ -2032,25 +2032,6 @@ class World implements ChunkManager{
$this->getChunk($x >> 4, $z >> 4, true)->setBiomeId($x & 0x0f, $z & 0x0f, $biomeId); $this->getChunk($x >> 4, $z >> 4, true)->setBiomeId($x & 0x0f, $z & 0x0f, $biomeId);
} }
/**
* @param int $x
* @param int $z
*
* @return int
*/
public function getHeightMap(int $x, int $z) : int{
return $this->getChunk($x >> 4, $z >> 4, true)->getHeightMap($x & 0x0f, $z & 0x0f);
}
/**
* @param int $x
* @param int $z
* @param int $value
*/
public function setHeightMap(int $x, int $z, int $value){
$this->getChunk($x >> 4, $z >> 4, true)->setHeightMap($x & 0x0f, $z & 0x0f, $value);
}
/** /**
* @return Chunk[] * @return Chunk[]
*/ */