Package com.cryptomorin.xseries
Class SkullUtils
java.lang.Object
com.cryptomorin.xseries.SkullUtils
public class SkullUtils extends Object
SkullUtils - Apply skull texture from different sources.
Skull Meta: https://hub.spigotmc.org/javadocs/spigot/org/bukkit/inventory/meta/SkullMeta.html Mojang API: https://wiki.vg/Mojang_API
Skull Meta: https://hub.spigotmc.org/javadocs/spigot/org/bukkit/inventory/meta/SkullMeta.html Mojang API: https://wiki.vg/Mojang_API
- Version:
- 2.0.0
- Author:
- Crypto Morin
- See Also:
XMaterial
-
Constructor Summary
Constructors Constructor Description SkullUtils()
-
Method Summary
Modifier and Type Method Description static org.bukkit.inventory.meta.SkullMeta
applySkin(org.bukkit.inventory.meta.ItemMeta head, String player)
static String
getSkinValue(String name, boolean isId)
https://api.mojang.com/users/profiles/minecraft/Username gives the ID https://api.mojang.com/user/profiles/ID without dashes/names gives the names used for the unique ID.static String
getSkinValue(org.bukkit.inventory.ItemStack skull)
static org.bukkit.inventory.ItemStack
getSkull(UUID id)
static org.bukkit.inventory.meta.SkullMeta
getSkullByValue(org.bukkit.inventory.meta.SkullMeta head, String value)
static org.bukkit.inventory.meta.SkullMeta
getTexturesFromUrlValue(org.bukkit.inventory.meta.SkullMeta head, String urlValue)
static org.bukkit.inventory.meta.SkullMeta
getValueFromTextures(org.bukkit.inventory.meta.SkullMeta head, String url)
-
Constructor Details
-
SkullUtils
public SkullUtils()
-
-
Method Details
-
getSkull
-
applySkin
-
getSkullByValue
-
getValueFromTextures
-
getTexturesFromUrlValue
-
getSkinValue
-
getSkinValue
https://api.mojang.com/users/profiles/minecraft/Username gives the ID https://api.mojang.com/user/profiles/ID without dashes/names gives the names used for the unique ID. https://sessionserver.mojang.com/session/minecraft/profile/ID example data:{ "id": "Without dashes -", "name": "", "properties": [ { "name": "textures", "value": "" } ] }
-