public class SkullCreator extends Object
| Modifier and Type | Method and Description |
|---|---|
static void |
blockWithBase64(org.bukkit.block.Block block,
String base64)
Sets the block to a skull with the skin for the base64 string.
|
static void |
blockWithName(org.bukkit.block.Block block,
String name)
Deprecated.
names don't make for good identifiers.
|
static void |
blockWithUrl(org.bukkit.block.Block block,
String url)
Sets the block to a skull with the skin found at the provided mojang URL.
|
static org.bukkit.inventory.ItemStack |
createSkull()
Creates a player skull, should work in both legacy and new Bukkit APIs.
|
static org.bukkit.inventory.ItemStack |
itemFromBase64(String base64)
Creates a player skull item with the skin based on a base64 string.
|
static org.bukkit.inventory.ItemStack |
itemFromName(String name)
Deprecated.
names don't make for good identifiers.
|
static org.bukkit.inventory.ItemStack |
itemFromUrl(String url)
Creates a player skull item with the skin at a Mojang URL.
|
static org.bukkit.inventory.ItemStack |
itemWithBase64(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 |
itemWithName(org.bukkit.inventory.ItemStack item,
String name)
Deprecated.
names don't make for good identifiers.
|
static org.bukkit.inventory.ItemStack |
itemWithUrl(org.bukkit.inventory.ItemStack item,
String url)
Modifies a skull to use the skin at the given Mojang URL.
|
public static org.bukkit.inventory.ItemStack createSkull()
public static org.bukkit.inventory.ItemStack itemFromName(String name)
name - The Player's name.public static org.bukkit.inventory.ItemStack itemFromUrl(String url)
url - The Mojang URL.public static org.bukkit.inventory.ItemStack itemFromBase64(String base64)
base64 - The Mojang URL.@Deprecated public static org.bukkit.inventory.ItemStack itemWithName(org.bukkit.inventory.ItemStack item, String name)
item - The item to apply the name to. Must be a player skull.name - The Player's name.public static org.bukkit.inventory.ItemStack itemWithUrl(org.bukkit.inventory.ItemStack item,
String url)
item - The item to apply the skin to. Must be a player skull.url - The URL of the Mojang skin.public static org.bukkit.inventory.ItemStack itemWithBase64(org.bukkit.inventory.ItemStack item,
String base64)
item - The ItemStack to put the base64 onto. Must be a player skull.base64 - The base64 string containing the texture.@Deprecated public static void blockWithName(org.bukkit.block.Block block, String name)
block - The block to set.name - The player to set it to.public static void blockWithUrl(org.bukkit.block.Block block,
String url)
block - The block to set.url - The mojang URL to set it to use.public static void blockWithBase64(org.bukkit.block.Block block,
String base64)
block - The block to set.base64 - The base64 to set it to use.Copyright © 2021. All rights reserved.