Class SkinUtils
java.lang.Object
me.libraryaddict.disguise.utilities.SkinUtils
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidattemptPromoteMineskin(org.bukkit.command.CommandSender sender) static SkinVariantdetectSkinVariant(File skinFile) Detects if a Minecraft skin is Steve (Classic) or Alex (Slim).static Stringstatic com.github.retrooper.packetevents.protocol.player.UserProfilestatic com.github.retrooper.packetevents.protocol.player.UserProfilegetUUID(String urlString, String name, AtomicInteger responseCodeInteger) static voidgrabSkin(String param, SkinUtils.SkinCallback callback) Deprecated.static voidgrabSkin(org.bukkit.command.CommandSender sender, String param, SkinUtils.SkinCallback callback) static voidhandleFile(File file, SkinVariant modelType, SkinUtils.SkinCallback callback) static voidhandleName(String playerName, SkinVariant modelType, SkinUtils.SkinCallback callback) static voidhandleProfile(com.github.retrooper.packetevents.protocol.player.UserProfile profile, SkinVariant modelType, SkinUtils.SkinCallback callback) static voidhandleProfile(com.mojang.authlib.GameProfile profile, SkinVariant modelType, SkinUtils.SkinCallback callback) static voidhandleUrl(String url, SkinVariant modelType, SkinUtils.SkinCallback callback) static voidhandleUUID(UUID uuid, SkinVariant modelType, SkinUtils.SkinCallback callback) static booleanisUsable()
-
Constructor Details
-
SkinUtils
public SkinUtils()
-
-
Method Details
-
attemptPromoteMineskin
public static void attemptPromoteMineskin(org.bukkit.command.CommandSender sender) -
handleFile
-
handleUrl
-
getUUID
-
getUUID
public static com.github.retrooper.packetevents.protocol.player.UserProfile getUUID(String urlString, String name, AtomicInteger responseCodeInteger) -
handleName
public static void handleName(String playerName, SkinVariant modelType, SkinUtils.SkinCallback callback) -
handleProfile
public static void handleProfile(com.mojang.authlib.GameProfile profile, SkinVariant modelType, SkinUtils.SkinCallback callback) -
handleProfile
public static void handleProfile(com.github.retrooper.packetevents.protocol.player.UserProfile profile, SkinVariant modelType, SkinUtils.SkinCallback callback) -
handleUUID
-
isUsable
public static boolean isUsable() -
getUsableStatus
-
grabSkin
Deprecated. -
grabSkin
public static void grabSkin(org.bukkit.command.CommandSender sender, String param, SkinUtils.SkinCallback callback) -
detectSkinVariant
Detects if a Minecraft skin is Steve (Classic) or Alex (Slim).This does so by checking the first 8x8 block of pixels which are unused, to determine if a solid color is used, or if transparency is used. Transparency is correct, but sometimes missing.
Then we compare the skin for the "right arm", if the skin is slimmer, compared using the background color, then it must be a slim skin
-