Package valorless.havenbags.utils
Class HeadCreator
java.lang.Object
valorless.havenbags.utils.HeadCreator
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
convertUrlToBase64
(String textureUrl) static org.bukkit.inventory.ItemStack
Creates a player skull item.static String
extractUrlFromBase64
(String base64Texture) static org.bukkit.inventory.ItemStack
itemFromBase64
(String base64) Creates a player skull item with a custom texture from a base64 string.static org.bukkit.inventory.ItemStack
itemFromUuid
(UUID id)
-
Method Details
-
createSkull
public static org.bukkit.inventory.ItemStack createSkull()Creates a player skull item.- Returns:
- The player skull item.
-
itemFromBase64
Creates a player skull item with a custom texture from a base64 string.- Parameters:
base64
- The base64 string containing the texture.- Returns:
- The custom player head item.
-
itemFromUuid
-
extractUrlFromBase64
-
convertUrlToBase64
-