mirror of
https://github.com/xfl03/MCCustomSkinLoader.git
synced 2026-11-19 08:29:16 +00:00
Remove Tab
This commit is contained in:
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);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user