Answer the question
In order to leave comments, you need to log in
What is the Minecraft skin detection algorithm?
I did not find such a question and information on it, so I ask - what is the algorithm for determining the skin of a minecraft character by nickname? Depending on the nickname, Steve or Alex is chosen and this is a pattern, I can’t determine it myself, and I’m asking you.
PS I know that the site is not suitable, but maybe someone knows.
Answer the question
In order to leave comments, you need to log in
From the game source:
DefaultSkinHelper:
public static Identifier getTexture(UUID uuid) {
return shouldUseSlimModel(uuid) ? ALEX_SKIN : STEVE_SKIN;
}
public static String getModel(UUID uuid) {
return shouldUseSlimModel(uuid) ? "slim" : "default";
}
private static boolean shouldUseSlimModel(UUID uuid) {
return (uuid.hashCode() & 1) == 1;
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question