mirror of
https://github.com/xfl03/MCCustomSkinLoader.git
synced 2026-11-22 01:32:15 +00:00
Added Extra List
This commit is contained in:
1 parent
10c0536dbe
commit
37960965b4
10 files changed
+169
-91
No files matched your search
@@ -0,0 +1,26 @@
|
||||
package customskinloader.loader;
|
||||
|
||||
import java.util.HashMap;
|
||||
|
||||
import com.mojang.authlib.GameProfile;
|
||||
|
||||
import customskinloader.config.SkinSiteProfile;
|
||||
import customskinloader.profile.UserProfile;
|
||||
|
||||
public class ProfileLoader {
|
||||
public static final HashMap<String,IProfileLoader> LOADERS=initLoaders();
|
||||
|
||||
private static HashMap<String, IProfileLoader> initLoaders() {
|
||||
HashMap<String, IProfileLoader> loaders=new HashMap<String, IProfileLoader>();
|
||||
loaders.put("mojangapi", new MojangAPILoader());
|
||||
loaders.put("customskinapi", new JsonAPILoader(JsonAPILoader.Type.CustomSkinAPI));
|
||||
loaders.put("legacy", new LegacyLoader());
|
||||
loaders.put("uniskinapi", new JsonAPILoader(JsonAPILoader.Type.UniSkinAPI));
|
||||
return loaders;
|
||||
}
|
||||
|
||||
public interface IProfileLoader {
|
||||
public UserProfile loadProfile(SkinSiteProfile ssp,GameProfile gameProfile,boolean local) throws Exception;
|
||||
public boolean compare(SkinSiteProfile ssp0,SkinSiteProfile ssp1);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user