Remove Tab

This commit is contained in:
Alexander Xia committed 2018-02-12 12:20:28 +08:00
1 parent 4449ccdd45
commit c40bb38e20
38 files changed
+2331 -2317

No files matched your search

@@ -8,27 +8,27 @@ import customskinloader.config.SkinSiteProfile;
import customskinloader.profile.UserProfile;
public class ProfileLoader {
private static final IProfileLoader[] DEFAULT_LOADERS={
new MojangAPILoader(),
new JsonAPILoader(JsonAPILoader.Type.CustomSkinAPI),
new JsonAPILoader(JsonAPILoader.Type.CustomSkinAPIPlus),
new LegacyLoader(),
new JsonAPILoader(JsonAPILoader.Type.UniSkinAPI)};
public static final HashMap<String,IProfileLoader> LOADERS=initLoaders();
private static HashMap<String, IProfileLoader> initLoaders() {
HashMap<String, IProfileLoader> loaders=new HashMap<String, IProfileLoader>();
for(IProfileLoader loader:DEFAULT_LOADERS){
loaders.put(loader.getName().toLowerCase(), loader);
}
return loaders;
}
public interface IProfileLoader {
public UserProfile loadProfile(SkinSiteProfile ssp,GameProfile gameProfile) throws Exception;
public boolean compare(SkinSiteProfile ssp0,SkinSiteProfile ssp1);
public String getName();
public void initLocalFolder(SkinSiteProfile ssp);
}
private static final IProfileLoader[] DEFAULT_LOADERS={
new MojangAPILoader(),
new JsonAPILoader(JsonAPILoader.Type.CustomSkinAPI),
new JsonAPILoader(JsonAPILoader.Type.CustomSkinAPIPlus),
new LegacyLoader(),
new JsonAPILoader(JsonAPILoader.Type.UniSkinAPI)};
public static final HashMap<String,IProfileLoader> LOADERS=initLoaders();
private static HashMap<String, IProfileLoader> initLoaders() {
HashMap<String, IProfileLoader> loaders=new HashMap<String, IProfileLoader>();
for(IProfileLoader loader:DEFAULT_LOADERS){
loaders.put(loader.getName().toLowerCase(), loader);
}
return loaders;
}
public interface IProfileLoader {
public UserProfile loadProfile(SkinSiteProfile ssp,GameProfile gameProfile) throws Exception;
public boolean compare(SkinSiteProfile ssp0,SkinSiteProfile ssp1);
public String getName();
public void initLocalFolder(SkinSiteProfile ssp);
}
}