Package de.maxbossing.maxapi.Builders
Class SkullBuilder
java.lang.Object
de.maxbossing.maxapi.Builders.SkullBuilder
-
Method Summary
Modifier and TypeMethodDescriptionstatic org.bukkit.inventory.ItemStackchangeSkullByBase64(org.bukkit.inventory.ItemStack item, String base64) Modifies a skull to use the skin based on the given base64 string.static org.bukkit.inventory.ItemStackchangeSkullByName(org.bukkit.inventory.ItemStack item, String name) Deprecated.names don't make for good identifiers.static org.bukkit.inventory.ItemStackchangeSkullByURL(org.bukkit.inventory.ItemStack item, String url) Modifies a skull to use the skin at the given Mojang URL.static org.bukkit.inventory.ItemStackchangeSkullByUUID(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.ItemStackcreateSkullByBase64(String base64) Creates a player skull item with the skin based on a base64 string.static org.bukkit.inventory.ItemStackcreateSkullByName(String name) Deprecated.names don't make for good identifiers.static org.bukkit.inventory.ItemStackcreateSkullByURL(String url) Creates a player skull item with the skin at a Mojang URL.static org.bukkit.inventory.ItemStackCreates a player skull item with the skin based on a player's UUID.
-
Method Details
-
createSkullByName
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
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
Creates a player skull item with the skin at a Mojang URL.- Parameters:
url- The Mojang URL.- Returns:
- The head of the Player.
-
createSkullByBase64
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.
-