Class SkullBuilder

java.lang.Object
de.maxbossing.maxapi.Builders.SkullBuilder

public class SkullBuilder extends Object
  • Method Summary

    Modifier and Type
    Method
    Description
    static org.bukkit.inventory.ItemStack
    changeSkullByBase64(org.bukkit.inventory.ItemStack item, String base64)
    Modifies a skull to use the skin based on the given base64 string.
    static org.bukkit.inventory.ItemStack
    changeSkullByName(org.bukkit.inventory.ItemStack item, String name)
    Deprecated.
    names don't make for good identifiers.
    static org.bukkit.inventory.ItemStack
    changeSkullByURL(org.bukkit.inventory.ItemStack item, String url)
    Modifies a skull to use the skin at the given Mojang URL.
    static org.bukkit.inventory.ItemStack
    changeSkullByUUID(org.bukkit.inventory.ItemStack item, UUID id)
    Modifies a skull to use the skin of the player with a given UUID.
    static org.bukkit.inventory.ItemStack
    Creates a player skull item with the skin based on a base64 string.
    static org.bukkit.inventory.ItemStack
    Deprecated.
    names don't make for good identifiers.
    static org.bukkit.inventory.ItemStack
    Creates a player skull item with the skin at a Mojang URL.
    static org.bukkit.inventory.ItemStack
    Creates a player skull item with the skin based on a player's UUID.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • createSkullByName

      public static org.bukkit.inventory.ItemStack createSkullByName(String name)
      Deprecated.
      names don't make for good identifiers.
      Creates a player skull item with the skin based on a player's name.
      Parameters:
      name - The Player's name.
      Returns:
      The head of the Player.
    • createSkullByUUID

      public static org.bukkit.inventory.ItemStack createSkullByUUID(UUID id)
      Creates a player skull item with the skin based on a player's UUID.
      Parameters:
      id - The Player's UUID.
      Returns:
      The head of the Player.
    • createSkullByURL

      public static org.bukkit.inventory.ItemStack createSkullByURL(String url)
      Creates a player skull item with the skin at a Mojang URL.
      Parameters:
      url - The Mojang URL.
      Returns:
      The head of the Player.
    • createSkullByBase64

      public static org.bukkit.inventory.ItemStack createSkullByBase64(String base64)
      Creates a player skull item with the skin based on a base64 string.
      Parameters:
      base64 - The Base64 string.
      Returns:
      The head of the Player.
    • changeSkullByName

      public static org.bukkit.inventory.ItemStack changeSkullByName(org.bukkit.inventory.ItemStack item, String name)
      Deprecated.
      names don't make for good identifiers.
      Modifies a skull to use the skin of the player with a given name.
      Parameters:
      item - The item to apply the name to. Must be a player skull.
      name - The Player's name.
      Returns:
      The head of the Player.
    • changeSkullByUUID

      public static org.bukkit.inventory.ItemStack changeSkullByUUID(org.bukkit.inventory.ItemStack item, UUID id)
      Modifies a skull to use the skin of the player with a given UUID.
      Parameters:
      item - The item to apply the name to. Must be a player skull.
      id - The Player's UUID.
      Returns:
      The head of the Player.
    • changeSkullByURL

      public static org.bukkit.inventory.ItemStack changeSkullByURL(org.bukkit.inventory.ItemStack item, String url)
      Modifies a skull to use the skin at the given Mojang URL.
      Parameters:
      item - The item to apply the skin to. Must be a player skull.
      url - The URL of the Mojang skin.
      Returns:
      The head associated with the URL.
    • changeSkullByBase64

      public static org.bukkit.inventory.ItemStack changeSkullByBase64(org.bukkit.inventory.ItemStack item, String base64)
      Modifies a skull to use the skin based on the given base64 string.
      Parameters:
      item - The ItemStack to put the base64 onto. Must be a player skull.
      base64 - The base64 string containing the texture.
      Returns:
      The head with a custom texture.