Skip to main content

Textured Heads

With the SkullTexture class you can get textured heads from base64, url, texture ID, player name or UUID.

info

The texture values are cached with 3 hours expiration after last access.

If you get some textured head using player name or UUID the texture value will be obtained asynchronously if it's not cached, so "LOADING" texture value will be obtained in that case.

Example

Get the following texture as ItemStack head using all the different methods.

String texture = "eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvZmVkZmEyZTBmZGVhMGMwNDIzODA0Y2RiNWI2MmFkMDVhNmU5MTRjMDQ2YzRhM2I3ZTM1NWJmODEyNjkxMjVmZCJ9fQ==";
// Simple get, the texture value will be used
ItemStack head = SkullTexture.getTexturedHead(texture);