diff --git a/src/world/format/SubChunk.php b/src/world/format/SubChunk.php index dbcf3fdd7..497d1911c 100644 --- a/src/world/format/SubChunk.php +++ b/src/world/format/SubChunk.php @@ -104,31 +104,14 @@ class SubChunk{ $this->blockLayer->set($x, $y, $z, $block); } - /** - * @deprecated Use getBlockLayer() and getLiquidLayer() instead - * @return PalettedBlockArray[] - * @phpstan-return list - */ - public function getBlockLayers() : array{ - return [$this->blockLayer, $this->liquidLayer]; - } - public function getBlockLayer() : PalettedBlockArray{ return $this->blockLayer; } - public function setBlockLayer(PalettedBlockArray $blockLayer) : void{ - $this->blockLayer = $blockLayer; - } - public function getLiquidLayer() : PalettedBlockArray{ return $this->liquidLayer; } - public function setLiquidLayer(PalettedBlockArray $liquidLayer) : void{ - $this->liquidLayer = $liquidLayer; - } - public function getHighestBlockAt(int $x, int $z) : ?int{ for($y = self::EDGE_LENGTH - 1; $y >= 0; --$y){ if($this->blockLayer->get($x, $y, $z) !== $this->emptyBlockId){