mirror of
https://github.com/xfl03/MCCustomSkinLoader.git
synced 2026-11-18 23:09:15 +00:00
Fix CustomSkinAPIPlus loading incorrectly. Fix unable to complete config with default value. (#168)
This commit is contained in:
1 parent
3e001c4cdf
commit
4df8ce38d6
12 files changed
+240
-114
No files matched your search
@@ -1,12 +1,35 @@
|
||||
package customskinloader.plugin;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import customskinloader.config.SkinSiteProfile;
|
||||
import customskinloader.loader.ProfileLoader;
|
||||
|
||||
public interface ICustomSkinLoaderPlugin {
|
||||
/**
|
||||
* @return return a non-null value if need to add a new profile loader, otherwise return null.
|
||||
*/
|
||||
ProfileLoader.IProfileLoader getProfileLoader();
|
||||
|
||||
String getLoaderName();
|
||||
/**
|
||||
* @return the default implementations which import by {@link ICustomSkinLoaderPlugin#getProfileLoader()}.
|
||||
*/
|
||||
List<IDefaultProfile> getDefaultProfiles();
|
||||
|
||||
void updateSkinSiteProfile(SkinSiteProfile ssp);
|
||||
interface IDefaultProfile {
|
||||
/**
|
||||
* @return the name of {@link SkinSiteProfile#name}.
|
||||
*/
|
||||
String getName();
|
||||
|
||||
/**
|
||||
* @return the lower the number, the first to load.
|
||||
*/
|
||||
int getPriority();
|
||||
|
||||
/**
|
||||
* Complete the {@link SkinSiteProfile} from config and write to config.
|
||||
*/
|
||||
void updateSkinSiteProfile(SkinSiteProfile ssp);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user