pocketmine\block\RedstoneTorch::activateTorch PHP Метод

activateTorch() публичный Метод

public activateTorch ( array $ignore = [], $notCheck = [] )
$ignore array
    public function activateTorch(array $ignore = [], $notCheck = [])
    {
        if ($this->canCalc()) {
            $this->activated = true;
            /** @var Door $block */
            $sides = [Vector3::SIDE_EAST, Vector3::SIDE_WEST, Vector3::SIDE_SOUTH, Vector3::SIDE_NORTH, Vector3::SIDE_UP, Vector3::SIDE_DOWN];
            foreach ($sides as $side) {
                if (!in_array($side, $ignore)) {
                    $block = $this->getSide($side);
                    if (!in_array($hash = Level::blockHash($block->x, $block->y, $block->z), $notCheck)) {
                        $this->activateBlock($block);
                    }
                }
            }
            //$this->lastUpdateTime = $this->getLevel()->getServer()->getTick();
        }
    }