mirror of
https://github.com/xfl03/MCCustomSkinLoader.git
synced 2026-11-16 21:05:04 +00:00
Revision 14
Local skin supported Local profile cache supported Better profile cache Swifter official profile loading Better skull loading Fix legacy loading bug Fix bug while using ClassTransformer
This commit is contained in:
1 parent
b34a5b3343
commit
5c12463c94
30 files changed
+766
-751
No files matched your search
@@ -0,0 +1,46 @@
|
||||
package customskinloader.profile;
|
||||
|
||||
/**The instance to storage user's profile in memory temporarily.
|
||||
* In this manner, it could be easier to pass profile in program.
|
||||
* @since 13.1
|
||||
*/
|
||||
public class UserProfile {
|
||||
|
||||
/**
|
||||
* Direct url for skin.
|
||||
* @since 13.1
|
||||
*/
|
||||
public String skinUrl=null;
|
||||
|
||||
/**
|
||||
* Model for skin.
|
||||
* default/slim
|
||||
* @since 13.1
|
||||
*/
|
||||
public String model=null;
|
||||
|
||||
/**
|
||||
* Direct url for cape.
|
||||
* @since 13.1
|
||||
*/
|
||||
public String capeUrl=null;
|
||||
|
||||
/**
|
||||
* Get parsed String to output the instance.
|
||||
*/
|
||||
@Override
|
||||
public String toString(){
|
||||
return toString(0);
|
||||
}
|
||||
public String toString(long expiry){
|
||||
return "(SkinUrl: "+skinUrl+" , Model: "+model+" , CapeUrl: "+capeUrl+(expiry==0?"":(" , Expiry: "+expiry))+")";
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if the instance is empty.
|
||||
* @return status (true - empty)
|
||||
*/
|
||||
public boolean isEmpty(){
|
||||
return skinUrl==null && (model==null||model.equalsIgnoreCase("default")) && capeUrl==null;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user