mirror of
https://github.com/xfl03/MCCustomSkinLoader.git
synced 2026-11-20 06:29:38 +00:00
Remove: all vanilla editions
This commit is contained in:
1 parent
c2dad72690
commit
755f7647ed
136 files changed
+113
-1355
No files matched your search
@@ -0,0 +1,33 @@
|
||||
package customskinloader.loader;
|
||||
|
||||
import java.util.HashMap;
|
||||
|
||||
import com.mojang.authlib.GameProfile;
|
||||
import customskinloader.CustomSkinLoader;
|
||||
import customskinloader.config.SkinSiteProfile;
|
||||
import customskinloader.plugin.ICustomSkinLoaderPlugin;
|
||||
import customskinloader.plugin.PluginLoader;
|
||||
import customskinloader.profile.UserProfile;
|
||||
|
||||
public class ProfileLoader {
|
||||
public static final HashMap<String, IProfileLoader> LOADERS = initLoaders();
|
||||
|
||||
private static HashMap<String, IProfileLoader> initLoaders() {
|
||||
HashMap<String, ProfileLoader.IProfileLoader> profileLoaders = new HashMap<>();
|
||||
for (ICustomSkinLoaderPlugin plugin : PluginLoader.PLUGINS) {
|
||||
ProfileLoader.IProfileLoader profileLoader = plugin.getProfileLoader();
|
||||
if (profileLoader != null) {
|
||||
profileLoaders.put(profileLoader.getName().toLowerCase(), profileLoader);
|
||||
CustomSkinLoader.logger.info("Add a profile loader: " + profileLoader.getName());
|
||||
}
|
||||
}
|
||||
return profileLoaders;
|
||||
}
|
||||
|
||||
public interface IProfileLoader {
|
||||
UserProfile loadProfile(SkinSiteProfile ssp,GameProfile gameProfile) throws Exception;
|
||||
boolean compare(SkinSiteProfile ssp0,SkinSiteProfile ssp1);
|
||||
String getName();
|
||||
void init(SkinSiteProfile ssp);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user