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() |
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 |
itemFromValue(String value) |
static org.bukkit.inventory.ItemStack |
itemWithUrl(org.bukkit.inventory.ItemStack item,
String value,
String signature) |
static com.mojang.authlib.GameProfile |
makeProfile(String value,
String signature) |
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.public static org.bukkit.inventory.ItemStack itemFromValue(String value)
public static org.bukkit.inventory.ItemStack itemWithUrl(org.bukkit.inventory.ItemStack item,
String value,
String signature)
@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 © 2022. All rights reserved.