{"id":24274521,"url":"https://github.com/snowiiii/mojangapi","last_synced_at":"2025-10-14T10:07:48.681Z","repository":{"id":65584455,"uuid":"594817500","full_name":"Snowiiii/MojangAPI","owner":"Snowiiii","description":"Simple \u0026 User Friendly Java Mojang API","archived":false,"fork":false,"pushed_at":"2024-12-30T14:00:13.000Z","size":168,"stargazers_count":9,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-11T00:48:11.685Z","etag":null,"topics":["java","mojang","mojang-api"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Snowiiii.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}},"created_at":"2023-01-29T18:22:43.000Z","updated_at":"2025-01-03T18:10:39.000Z","dependencies_parsed_at":"2023-02-16T09:16:02.144Z","dependency_job_id":"7973ad5f-ea8a-46cd-a879-4ebf77d3244c","html_url":"https://github.com/Snowiiii/MojangAPI","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Snowiiii%2FMojangAPI","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Snowiiii%2FMojangAPI/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Snowiiii%2FMojangAPI/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Snowiiii%2FMojangAPI/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Snowiiii","download_url":"https://codeload.github.com/Snowiiii/MojangAPI/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":234099125,"owners_count":18779663,"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":["java","mojang","mojang-api"],"created_at":"2025-01-15T20:47:47.766Z","updated_at":"2025-09-24T17:30:23.759Z","avatar_url":"https://github.com/Snowiiii.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Mojang API for Java\n\nThe Mojang API for Java is a library that provides Java developers with an easy-to-use interface for accessing Mojang's APIs. This library makes it simple to fetch game profiles and UUIDs from Mojang's servers, and cache them locally for faster access.\n\n### Getting Started\n\nTo get started with the Mojang API for Java, you can add it to your Maven or Gradle project as a dependency.\n\n#### Maven\n```xml\n\u003crepositories\u003e\n    \u003crepository\u003e\n        \u003cid\u003eeldonexus-repo\u003c/id\u003e\n        \u003curl\u003ehttps://eldonexus.de/repository/maven-public/\u003c/url\u003e\n    \u003c/repository\u003e\n\u003c/repositories\u003e\n```\nThen add the dependency:\n```xml\n\u003cdependency\u003e\n    \u003cgroupId\u003ede.snowii\u003c/groupId\u003e\n    \u003cartifactId\u003emojang-api\u003c/artifactId\u003e\n    \u003cversion\u003e1.1.0\u003c/version\u003e\n\u003c/dependency\u003e\n```\n### Gradle\nAdd the following repository to your build.gradle file:\n```groovy\nrepositories {\n    mavenCentral()\n    maven(\"https://eldonexus.de/repository/maven-public/\")\n}\n```\nThen add the dependency:\n```groovy\ndependencies {\n    implementation(\"de.snowii:mojang-api:1.1.0\")\n}\n```\n\n### Using the API\n\nOnce you have added the library to your project, you can use the API in the MojangAPI class. For example, to get a GameProfile object for a given username:\n```java\n    GameProfile profile = MojangAPI.getGameProfile(\"Notch\");\n```\n\nYou can also get a GameProfile by UUID:\n```java\n     GameProfile profile = MojangAPI.getGameProfile(UUID.fromString(\"7bd9c2cb-079f-4f5b-925d-4bffdcf24aa8\"));\n```\n### Using a Proxy\n\nIf you are using a proxy, you can set it at the beginning of your code with:\n```java\n      MojangJSONParser.setProxy(\u003cproxy\u003e);\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsnowiiii%2Fmojangapi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsnowiiii%2Fmojangapi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsnowiiii%2Fmojangapi/lists"}