pocketmine\block\Observer::onUpdateRecieve PHP Метод

onUpdateRecieve() приватный Метод

private onUpdateRecieve ( $type = NULL, $data = NULL )
    private function onUpdateRecieve($type = NULL, $data = NULL)
    {
        if ($type === self::TYPE_BLOCK_HASH && $data != $this->getWatchBlock()->getHash()) {
            return;
        }
        if ($type === self::TYPE_BLOCK_OBJECT && [$data->x, $data->y, $data->z] != [$this->getWatchBlock()->x, $this->getWatchBlock()->y, $this->getWatchBlock()->z]) {
            return;
        }
        $this->currentStatus = self::STATUS_IS_ACTIVATED;
        $this->getLevel()->setRedstoneUpdate($this->getOutputBlock(), Block::REDSTONEDELAY, Level::REDSTONE_UPDATE_PLACE, Block::REDSTONESOURCEPOWER);
        $this->getLevel()->scheduleUpdate($this, 1);
    }