2016-02-27 15:22:35 +08:00
|
|
|
package customskinloader.config;
|
|
|
|
|
|
|
|
|
|
public class SkinSiteProfile {
|
2018-02-12 12:20:28 +08:00
|
|
|
public String name;
|
|
|
|
|
public String type;
|
|
|
|
|
public String userAgent;
|
|
|
|
|
|
|
|
|
|
public String root;
|
|
|
|
|
|
|
|
|
|
public Boolean checkPNG;//Not suitable for local skin
|
|
|
|
|
public String skin;
|
|
|
|
|
public String model;
|
|
|
|
|
public String cape;
|
|
|
|
|
public String elytra;
|
|
|
|
|
|
|
|
|
|
public static SkinSiteProfile createMojangAPI(String name){
|
|
|
|
|
SkinSiteProfile ssp=new SkinSiteProfile();
|
|
|
|
|
ssp.name=name;
|
|
|
|
|
ssp.type="MojangAPI";
|
|
|
|
|
return ssp;
|
|
|
|
|
}
|
|
|
|
|
public static SkinSiteProfile createCustomSkinAPI(String name,String root){
|
|
|
|
|
SkinSiteProfile ssp=new SkinSiteProfile();
|
|
|
|
|
ssp.name=name;
|
|
|
|
|
ssp.type="CustomSkinAPI";
|
|
|
|
|
ssp.root=root;
|
|
|
|
|
return ssp;
|
|
|
|
|
}
|
|
|
|
|
public static SkinSiteProfile creatCustomSkinAPIPlus(String name,String root){
|
|
|
|
|
SkinSiteProfile ssp=new SkinSiteProfile();
|
|
|
|
|
ssp.name=name;
|
|
|
|
|
ssp.type="CustomSkinAPIPlus";
|
|
|
|
|
ssp.root=root;
|
|
|
|
|
return ssp;
|
|
|
|
|
}
|
|
|
|
|
public static SkinSiteProfile createUniSkinAPI(String name,String root){
|
|
|
|
|
SkinSiteProfile ssp=new SkinSiteProfile();
|
|
|
|
|
ssp.name=name;
|
|
|
|
|
ssp.type="UniSkinAPI";
|
|
|
|
|
ssp.root=root;
|
|
|
|
|
return ssp;
|
|
|
|
|
}
|
|
|
|
|
public static SkinSiteProfile createLegacy(String name,String skin,String cape,String elytra){
|
|
|
|
|
SkinSiteProfile ssp=new SkinSiteProfile();
|
|
|
|
|
ssp.name=name;
|
|
|
|
|
ssp.type="Legacy";
|
|
|
|
|
ssp.checkPNG=false;
|
|
|
|
|
ssp.skin=skin;
|
|
|
|
|
ssp.model="default";
|
|
|
|
|
ssp.cape=cape;
|
|
|
|
|
ssp.elytra=elytra;
|
|
|
|
|
return ssp;
|
|
|
|
|
}
|
2018-07-20 23:23:37 +08:00
|
|
|
|
|
|
|
|
public static SkinSiteProfile createElyByAPI(String name) {
|
|
|
|
|
SkinSiteProfile ssp = new SkinSiteProfile();
|
|
|
|
|
ssp.name = name;
|
|
|
|
|
ssp.type = "ElyByAPI";
|
|
|
|
|
return ssp;
|
|
|
|
|
}
|
2016-02-27 15:22:35 +08:00
|
|
|
}
|