Java
1
Вклад в тег
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;
}