{"id":13821557,"url":"https://github.com/ammarx/TagAPI_3","last_synced_at":"2025-05-16T12:33:45.001Z","repository":{"id":49320289,"uuid":"60210173","full_name":"ammarx/TagAPI_3","owner":"ammarx","description":"Open-source Minecraft Launcher API - TagAPI","archived":false,"fork":false,"pushed_at":"2024-09-10T21:05:04.000Z","size":766,"stargazers_count":25,"open_issues_count":0,"forks_count":8,"subscribers_count":5,"default_branch":"master","last_synced_at":"2024-11-19T21:36:10.678Z","etag":null,"topics":["custom-minecraft-launchers","game","game-launcher","java","launch-minecraft","mclauncher-api","minecraft","minecraft-downloader","minecraft-launcher"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ammarx.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-06-01T20:55:51.000Z","updated_at":"2024-09-23T13:47:01.000Z","dependencies_parsed_at":"2024-11-19T21:41:26.948Z","dependency_job_id":null,"html_url":"https://github.com/ammarx/TagAPI_3","commit_stats":null,"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ammarx%2FTagAPI_3","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ammarx%2FTagAPI_3/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ammarx%2FTagAPI_3/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ammarx%2FTagAPI_3/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ammarx","download_url":"https://codeload.github.com/ammarx/TagAPI_3/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254530794,"owners_count":22086679,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["custom-minecraft-launchers","game","game-launcher","java","launch-minecraft","mclauncher-api","minecraft","minecraft-downloader","minecraft-launcher"],"created_at":"2024-08-04T08:01:23.910Z","updated_at":"2025-05-16T12:33:44.994Z","avatar_url":"https://github.com/ammarx.png","language":"Java","funding_links":[],"categories":["Java"],"sub_categories":[],"readme":"# Open-source Minecraft Launcher API - TagAPI\nThe purpose of the API is to provide developers the ability to download / run Minecraft.\n\nThe accessible class which is the API_Interface, consists of the following functions:\n\n- Local Data:\n  - ```List getInstallableVersionsList()``` - *Returns list of all versions available to download*\n  - ```List getInstalledVersionsList() ```- *Returns list of all versions installed on users machine*\n\n- Screen Dimensions:\n  - ```void setWidth(int WidthToUse)``` - *Set screen size width for the game;* _**default is 854**_\n  - ```void setHeight(int HeightToUse)``` - *Set screen size height for the game;* _**default is 480**_\n\n- Memory Allocation:\n  - ```void setMinMemory(int MemoryToUse)``` - *Set amount of minimum memory allocated for the game;* _**default is 1024**_\n  - ```void setMemory(int MemoryToUse)``` - *Set amount of maximum memory allocated for the game;* _**default is 1024**_\n\n- Miscellaneous:\n  - ```void syncVersions()``` - *Syncs game profiles with premium launcher*\n  - ```void setJavaPath(String JavaPathToUse)``` - *Set external Java path to use for the game;* _**default path is JAVA path on the system**_\n  - ```void setJVMArgument(String JVMArgumentsToUse)``` - *Set extra JVM Arguments to use for the game;* _**default arguments are none**_\n  - ```void injectNetty(String OperatingSystemToUse)``` - *Injects netty with invalid url. This can be used to bypass server blacklist*\n\n- Server NBT:\n  - ```List getServersIPList()``` - *Returns the list of all IP addresses found in servers.dat*\n  - ```List getServersNameList()``` - *Returns the list of all server names found in servers.dat*\n  - ```void addServerToServersDat(String NameOfTheServer, String IPAddress)``` - *Adds the server name and IP to servers.dat using NBT uncompressed format*\n\n- Downloads:\n  - ```void downloadMinecraft(String VersionToUse, Boolean ForceDownload)``` - *Accepts (Version to download, Force Download); if force download is True, it will re-download all the files, vice-versa if it is set to False, it will only download the missing files.*\n  - ```void downloadVersionManifest()``` - *Downloads the list of all versions available on the server*\n  - ```void downloadProfile(String UsernameToUse)``` - *Downloads the profile data in order to set UUID; Accepts (Username)*\n\n- Launch:\n  - ```void runMinecraft(String UsernameToUse, String VersionToUse)``` - *Accepts (Username, Version to run) and launches Minecraft*\n\n- Version Info:\n  -  ```String getAPIVersion()``` - *Returns the version number of the API library*\n\n- Logs:\n  - ```String getLog()``` - *Returns last logged log*\n  - ```List getLogs()``` - *Returns a list of all logged logs*\n  - ```void dumpLogs()``` - *Writes all logged logs to* _**/.minecraft/Launcherlogs.txt**_\n\n| Key                             | Log Type      | Purpose                                           |\n| :-----------------------------: |:-------------:| :------------------------------------------------:|\n| [rl] ```{prefix}```             | run logs      | tells when local file processing is being done    |\n| [dl] ```{prefix}```             | download logs | tells when API is downloading files               |\n| [el] ```{prefix}```             | error logs    | tells when an error has occured in the API        |\n| [rl] Minecraft Corruption found!| run logs      | tells when the API failed to run minecraft        |\n| [rl] Minecraft Initialized!     | run logs      | tells when the API has successfully run minecraft |\n| [dl] Download Complete!         | download logs | tells when the API has completed downloading files|\n\n# Example Code\n- Download Minecraft (Force Download: False):\n```java\n    tagapi_3.API_Interface API = new tagapi_3.API_Interface();\n    API.downloadMinecraft(\"1.8.9\", false); //download version 1.8.9, without replacing the files\n```\n\n- Launch Minecraft:\n```java\n    tagapi_3.API_Interface API = new tagapi_3.API_Interface();\n    API.runMinecraft(\"Ammar_Ahmad\", \"1.8.9\"); //run minecraft with username: Ammar_Ahmad, and version: 1.8.9\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fammarx%2FTagAPI_3","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fammarx%2FTagAPI_3","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fammarx%2FTagAPI_3/lists"}