pocketmine\block\TallGrass::onUpdate PHP Метод

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

public onUpdate ( $type )
    public function onUpdate($type)
    {
        if ($type === Level::BLOCK_UPDATE_NORMAL) {
            if ($this->getSide(0)->isTransparent() === true) {
                //Replace with common break method
                $this->getLevel()->setBlock($this, new Air(), false, false);
                return Level::BLOCK_UPDATE_NORMAL;
            }
        }
        return false;
    }