[BROKEN] CustomHeadAPI v0.2

A library plugin that allows creation of player heads that use custom skins

  1. SB_prime
    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.

    1.13 Compatibility
    Since this plugin was abandoned there will be no 1.13 compatible version.

    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]
    Plazmaz, danenco, _Cory_ and 2 others like this.

Recent Updates

  1. CustomHeadAPI v0.2

Recent Reviews

  1. TigerHix
    TigerHix
    5/5,
    Version: 0.1
    Worked perfectly.