Package com.cryptomorin.xseries
Class SkullUtils
java.lang.Object
com.cryptomorin.xseries.SkullUtils
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
Some websites to get custom heads:
- https://minecraft-heads.com/
The basic premise behind this API is that the final skull data is contained in a GameProfile
either by ID, name or encoded textures URL property.
- Version:
- 4.0.0
- Author:
- Crypto Morin
- See Also:
-
XMaterialReflectionUtilsSkullCacheListener
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final MethodHandleprotected static final MethodHandleprotected static final MethodHandle -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic org.bukkit.inventory.meta.SkullMetastatic org.bukkit.inventory.meta.SkullMetastatic org.bukkit.inventory.meta.SkullMetaapplySkin(org.bukkit.inventory.meta.ItemMeta head, org.bukkit.OfflinePlayer identifier) static com.mojang.authlib.GameProfiledetectProfileFromString(String identifier) static SkullUtils.ValueTypedetectSkullValueType(String identifier) static StringencodeTexturesURL(String url) static StringgetSkinValue(org.bukkit.inventory.meta.ItemMeta skull) static org.bukkit.inventory.ItemStackstatic com.mojang.authlib.GameProfileprofileFromBase64(String value) static com.mojang.authlib.GameProfileprofileFromPlayer(org.bukkit.OfflinePlayer player) static voidprotected static org.bukkit.inventory.meta.SkullMetasetSkullBase64(org.bukkit.inventory.meta.SkullMeta head, String value)
-
Field Details
-
CRAFT_META_SKULL_PROFILE_GETTER
-
CRAFT_META_SKULL_PROFILE_SETTER
-
CRAFT_META_SKULL_BLOCK_SETTER
-
-
Constructor Details
-
SkullUtils
public SkullUtils()
-
-
Method Details
-
getSkull
-
applySkin
-
applySkin
-
applySkin
-
setSkullBase64
-
profileFromBase64
-
profileFromPlayer
@Nonnull public static com.mojang.authlib.GameProfile profileFromPlayer(org.bukkit.OfflinePlayer player) -
detectProfileFromString
-
detectSkullValueType
-
setSkin
-
encodeTexturesURL
-
getSkinValue
-