HomeJavaMods[BROKEN] CustomHeadAPI
CustomHeadAPI
This plugin provides a simple API that allows you to create a custom player head using a custom texture.

This plugin requires Minecraft 1.8

THIS PLUGIN IS CURRENTLY BROKEN AND THERE IS NO WAY TO FIX IT BECAUSE MOJANG ADDED A WHITELIS ARRAY IN AUTHLIB (IN CODE SIC) OF ALLOWED TEXTURE SERVERS.

API
CustomHeadApi class
This is the main plugin class. You can get the instance of this class using the static getInstance() (Or any other method that you prefer).

Code (Text):
public class CustomHeadApi extends JavaPlugin
{
  public static CustomHeadApi getInstance();
  public IHeadCreator getHeadCreator();
}
IHeadCreator class
This is the main API interface. Use it to create a ItemStack that contains 1 custom player head. The head texture is set to the provided url. The texture needs to by 32x16 pixels.

Warning: Remember that the texture needs to by accessible to the players from the internet.
Code (Text):
public interface IHeadCreator
{
  /**
  * Create a new GameProfile containing custom
  * player head data
  * @param url The texture url (image 32x16pixel)
  */
  GameProfile createGameProfile(String url);

  /**
   * Create a new item stack that contains a custom
   * player head
   * @param url The texture url (image 32x16pixel)
   */
  ItemStack createItemStack(String url);

  /**
  * Set the custom player head data directly into
  * the skull tiled entity
  * @param skull The skull block state (use Block.getState() on skull block)
  * @param url The texture url (image 32x16pixel)
  * @return true if update was successful
  */
  boolean updateSkull(Skull skull, String url);
}
Donate
Programmer: "an organism that turns caffeine and pizza into software".

If you like you can buy me a pizza ;)

[​IMG]
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.

[BROKEN] CustomHeadAPI is a free Minecraft Java mod. Downloaded 766 times (via Spigot). Download it and open it directly in the game.

Explore more