pocketmine\block\PoweredRepeater::activate PHP Method

activate() public method

public activate ( array $ignore = [] )
$ignore array
    public function activate(array $ignore = [])
    {
        if ($this->canCalc()) {
            if ($this->id != self::POWERED_REPEATER_BLOCK) {
                $this->id = self::POWERED_REPEATER_BLOCK;
                $this->getLevel()->setBlock($this, $this, true, false);
            }
            $this->getLevel()->setBlockTempData($this, self::ACTION_ACTIVATE);
            $this->getLevel()->scheduleUpdate($this, $this->getDelayLevel() * 2);
        }
    }