public function getBlockIdAt(int $x, int $y, int $z) : int
{
return $this->getChunk($x >> 4, $z >> 4, true)->getBlockId($x & 0xf, $y & 0x7f, $z & 0xf);
}
public function sideCheck($x, $y, $z, Level $level, $name) { if ($level->getBlockIdAt($x, $y, $z) == Block::CHEST) { if (isset($this->configData["{$x}:{$y}:{$z}"])) { if ($this->configData["{$x}:{$y}:{$z}"] != $name) { return true; } } } return false; }