Skip to content

Get textures

Edward edited this page Apr 16, 2021 · 1 revision
TexturesRequest textures = MojangAPI.getTextures("uuid");

textures.isHasSkin(); // if player has skin it will return true
textures.getSkin(); // if player hasn't got skin, null will be returned
textures.isSlim(); // if player's skin model is SLIM, true will be returned

textures.isHasCape(); // if player has cape it will return true
textures.getCape(); // if player hasn't got cape, null will be returned

Analog: https://sessionserver.mojang.com/session/minecraft/profile/UUID?unsigned=false

Clone this wiki locally