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

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

public onUpdate ( $type )
    public function onUpdate($type)
    {
        if ($type === Level::BLOCK_UPDATE_NORMAL) {
            /*if($this->getSide(0)->getId() === self::AIR){ //Replace with common break method
            			Server::getInstance()->api->entity->drop($this, Item::get(LADDER, 0, 1));
            			$this->getLevel()->setBlock($this, new Air(), true, true, true);
            			return Level::BLOCK_UPDATE_NORMAL;
            		}*/
        }
        return false;
    }