HomeJavaModsMojang API
Mojang API
A PHP Library for requests to the Mojang API or the Mojang Skinservers.

Official Minecraft Wiki about the Mojang API:
https://minecraft.fandom.com/de/wiki/Mojang_API

Installation
Code (Text):
composer require lordrazen/mojang-api
https://packagist.org/packages/lordrazen/mojang-api


How to use this class to convert UUIDs

Get UUID from Playername:
Code (Text):
MojangAPI::getUuidFromName('LordRazen);
Result: 8d0a41175a764b72a7dc67b555119fef


Get Value from UUID:
Code (Text):
MojangAPI::getValueFromUUID('8d0a41175a764b72a7dc67b555119fef');
Result: ewogICJ0aW1lc3RhbXAiIDogMT...


Get All Names from UUID:
Code (Text):
MojangAPI::getAllNamesFromUUID('8d0a41175a764b72a7dc67b555119fef);
Result: ["LordRazen"]


Check if Skinfile Exists: http://textures.minecraft.net/texture/d5c6dc2bbf51c36cfc7714585a6a5683ef2b14d47d8ff714654a893f5da622
Code (Text):
MojangAPI::validateSkinFileExists('d5c6dc2bbf51c36cfc7714585a6a5683ef2b14d47d8ff714654a893f5da622');
Result: bool


Get Skinfile from Mojang Skin Servers:
Code (Text):
MojangAPI::getSkinFile('d5c6dc2bbf51c36cfc7714585a6a5683ef2b14d47d8ff714654a893f5da622');
Result: GdImage


www.minecraft-heads.com

minecraft-heads_halfbanner_234x60.png
Quick facts

Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.

Mojang API is a free Minecraft Java mod. Downloaded 293 times (via Spigot). Download it and open it directly in the game.

Explore more