mirror of
https://github.com/xfl03/MCCustomSkinLoader.git
synced 2026-11-13 04:17:30 +00:00
Added Skull Support
This commit is contained in:
1 parent
4142609635
commit
5a29416ee9
7 files changed
+57
-30
No files matched your search
@@ -33,9 +33,11 @@ public class ImageBufferDownload implements IImageBuffer
|
||||
}
|
||||
var3.dispose();
|
||||
this.imageData = ((DataBufferInt)var2.getRaster().getDataBuffer()).getData();
|
||||
this.setAreaOpaque(0, 0, 32*radio, 16*radio);
|
||||
this.setAreaTransparent(32*radio, 0, 64*radio, 32*radio);
|
||||
this.setAreaOpaque(0, 16*radio, 64*radio, 32*radio);
|
||||
if(!customskinloader.CustomSkinLoader.config.enableTransparentSkin){
|
||||
this.setAreaOpaque(0, 0, 32*radio, 16*radio);
|
||||
this.setAreaTransparent(32*radio, 0, 64*radio, 32*radio);
|
||||
this.setAreaOpaque(0, 16*radio, 64*radio, 32*radio);
|
||||
}
|
||||
return var2;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -135,7 +135,7 @@ public class SkinManager
|
||||
var1.putAll(SkinManager.this.field_152797_e.getTextures(SkinManager.this.field_152797_e.fillProfileProperties(p_152790_1_, false), false));
|
||||
}*/
|
||||
|
||||
//CustomSkinLoader Begin
|
||||
//CustomSkinLoader Begin (User Skin/Cape Part)
|
||||
if(customskinloader.CustomSkinLoader.config.enable){
|
||||
Map newMap=customskinloader.CustomSkinLoader.loadProfile(p_152790_1_.getName(), var1);
|
||||
if(!newMap.isEmpty()){
|
||||
@@ -167,7 +167,12 @@ public class SkinManager
|
||||
|
||||
public Map func_152788_a(GameProfile p_152788_1_)
|
||||
{
|
||||
return (Map)this.field_152798_f.getUnchecked(p_152788_1_);
|
||||
//CustomSkinLoader Begin (Skull Part)
|
||||
//return (Map)this.skinCacheLoader.getUnchecked(p_152788_1_);
|
||||
return (customskinloader.CustomSkinLoader.config.enable && customskinloader.CustomSkinLoader.config.enableSkull)?
|
||||
customskinloader.CustomSkinLoader.loadProfileFromCache(p_152788_1_.getName()):
|
||||
this.skinCacheLoader.getUnchecked(p_152788_1_);
|
||||
//CustomSkinLoader End
|
||||
}
|
||||
|
||||
public interface SkinAvailableCallback
|
||||
|
||||
@@ -45,15 +45,17 @@ public class ImageBufferDownload implements IImageBuffer
|
||||
|
||||
var3.dispose();
|
||||
this.imageData = ((DataBufferInt)var2.getRaster().getDataBuffer()).getData();
|
||||
this.setAreaOpaque(0, 0, 32 * ratio, 16 * ratio);
|
||||
this.setAreaTransparent(32 * ratio, 0, 64 * ratio, 32 * ratio);
|
||||
this.setAreaOpaque(0, 16 * ratio, 64 * ratio, 32 * ratio);
|
||||
this.setAreaTransparent(0, 32 * ratio, 16 * ratio, 48 * ratio);
|
||||
this.setAreaTransparent(16 * ratio, 32 * ratio, 40 * ratio, 48 * ratio);
|
||||
this.setAreaTransparent(40 * ratio, 32 * ratio, 56 * ratio, 48 * ratio);
|
||||
this.setAreaTransparent(0, 48 * ratio, 16 * ratio, 64 * ratio);
|
||||
this.setAreaOpaque(16 * ratio, 48 * ratio, 48 * ratio, 64 * ratio);
|
||||
this.setAreaTransparent(48 * ratio, 48 * ratio, 64 * ratio, 64 * ratio);
|
||||
if(!customskinloader.CustomSkinLoader.config.enableTransparentSkin){
|
||||
this.setAreaOpaque(0, 0, 32 * ratio, 16 * ratio);
|
||||
this.setAreaTransparent(32 * ratio, 0, 64 * ratio, 32 * ratio);
|
||||
this.setAreaOpaque(0, 16 * ratio, 64 * ratio, 32 * ratio);
|
||||
this.setAreaTransparent(0, 32 * ratio, 16 * ratio, 48 * ratio);
|
||||
this.setAreaTransparent(16 * ratio, 32 * ratio, 40 * ratio, 48 * ratio);
|
||||
this.setAreaTransparent(40 * ratio, 32 * ratio, 56 * ratio, 48 * ratio);
|
||||
this.setAreaTransparent(0, 48 * ratio, 16 * ratio, 64 * ratio);
|
||||
this.setAreaOpaque(16 * ratio, 48 * ratio, 48 * ratio, 64 * ratio);
|
||||
this.setAreaTransparent(48 * ratio, 48 * ratio, 64 * ratio, 64 * ratio);
|
||||
}
|
||||
return var2;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -136,7 +136,7 @@ public class SkinManager
|
||||
var1.putAll(SkinManager.this.sessionService.getTextures(SkinManager.this.sessionService.fillProfileProperties(p_152790_1_, false), false));
|
||||
}*/
|
||||
|
||||
//CustomSkinLoader Begin
|
||||
//CustomSkinLoader Begin (User Skin/Cape Part)
|
||||
if(customskinloader.CustomSkinLoader.config.enable){
|
||||
Map newMap=customskinloader.CustomSkinLoader.loadProfile(p_152790_1_.getName(), var1);
|
||||
if(!newMap.isEmpty()){
|
||||
@@ -168,7 +168,12 @@ public class SkinManager
|
||||
|
||||
public Map loadSkinFromCache(GameProfile p_152788_1_)
|
||||
{
|
||||
return (Map)this.skinCacheLoader.getUnchecked(p_152788_1_);
|
||||
//CustomSkinLoader Begin (Skull Part)
|
||||
//return (Map)this.skinCacheLoader.getUnchecked(p_152788_1_);
|
||||
return (customskinloader.CustomSkinLoader.config.enable && customskinloader.CustomSkinLoader.config.enableSkull)?
|
||||
customskinloader.CustomSkinLoader.loadProfileFromCache(p_152788_1_.getName()):
|
||||
this.skinCacheLoader.getUnchecked(p_152788_1_);
|
||||
//CustomSkinLoader End
|
||||
}
|
||||
|
||||
public interface SkinAvailableCallback
|
||||
|
||||
@@ -44,15 +44,17 @@ public class ImageBufferDownload implements IImageBuffer
|
||||
|
||||
var3.dispose();
|
||||
this.imageData = ((DataBufferInt)var2.getRaster().getDataBuffer()).getData();
|
||||
this.setAreaOpaque(0, 0, 32 * ratio, 16 * ratio);
|
||||
this.setAreaTransparent(32 * ratio, 0, 64 * ratio, 32 * ratio);
|
||||
this.setAreaOpaque(0, 16 * ratio, 64 * ratio, 32 * ratio);
|
||||
this.setAreaTransparent(0, 32 * ratio, 16 * ratio, 48 * ratio);
|
||||
this.setAreaTransparent(16 * ratio, 32 * ratio, 40 * ratio, 48 * ratio);
|
||||
this.setAreaTransparent(40 * ratio, 32 * ratio, 56 * ratio, 48 * ratio);
|
||||
this.setAreaTransparent(0, 48 * ratio, 16 * ratio, 64 * ratio);
|
||||
this.setAreaOpaque(16 * ratio, 48 * ratio, 48 * ratio, 64 * ratio);
|
||||
this.setAreaTransparent(48 * ratio, 48 * ratio, 64 * ratio, 64 * ratio);
|
||||
if(!customskinloader.CustomSkinLoader.config.enableTransparentSkin){
|
||||
this.setAreaOpaque(0, 0, 32 * ratio, 16 * ratio);
|
||||
this.setAreaTransparent(32 * ratio, 0, 64 * ratio, 32 * ratio);
|
||||
this.setAreaOpaque(0, 16 * ratio, 64 * ratio, 32 * ratio);
|
||||
this.setAreaTransparent(0, 32 * ratio, 16 * ratio, 48 * ratio);
|
||||
this.setAreaTransparent(16 * ratio, 32 * ratio, 40 * ratio, 48 * ratio);
|
||||
this.setAreaTransparent(40 * ratio, 32 * ratio, 56 * ratio, 48 * ratio);
|
||||
this.setAreaTransparent(0, 48 * ratio, 16 * ratio, 64 * ratio);
|
||||
this.setAreaOpaque(16 * ratio, 48 * ratio, 48 * ratio, 64 * ratio);
|
||||
this.setAreaTransparent(48 * ratio, 48 * ratio, 64 * ratio, 64 * ratio);
|
||||
}
|
||||
return var2;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -129,7 +129,7 @@ public class SkinManager
|
||||
map.putAll(SkinManager.this.sessionService.getTextures(profile, false));
|
||||
}*/
|
||||
|
||||
//CustomSkinLoader Begin
|
||||
//CustomSkinLoader Begin (User Skin/Cape Part)
|
||||
if(customskinloader.CustomSkinLoader.config.enable){
|
||||
Map newMap=customskinloader.CustomSkinLoader.loadProfile(profile.getName(), map);
|
||||
if(!newMap.isEmpty()){
|
||||
@@ -160,7 +160,12 @@ public class SkinManager
|
||||
|
||||
public Map<Type, MinecraftProfileTexture> loadSkinFromCache(GameProfile profile)
|
||||
{
|
||||
return (Map)this.skinCacheLoader.getUnchecked(profile);
|
||||
//CustomSkinLoader Begin (Skull Part)
|
||||
//return (Map)this.skinCacheLoader.getUnchecked(profile);
|
||||
return (customskinloader.CustomSkinLoader.config.enable && customskinloader.CustomSkinLoader.config.enableSkull)?
|
||||
customskinloader.CustomSkinLoader.loadProfileFromCache(profile.getName()):
|
||||
this.skinCacheLoader.getUnchecked(profile);
|
||||
//CustomSkinLoader End
|
||||
}
|
||||
|
||||
public interface SkinAvailableCallback
|
||||
|
||||
@@ -11,15 +11,21 @@ Skin Load API Supported:
|
||||
- Legacy
|
||||
You can use this feature to customize your skin load list so as to load from any website you want.
|
||||
If you are the owner of skin website, you can use CustomSkinLoader to load skin from your website if one of the api has been actualized.
|
||||
|
||||
###HD skins support
|
||||
|
||||
###HD Skins Support
|
||||
Even though there is no Optifine, CustomSkinLoader has fix this problem.
|
||||
You can easily to get a better view in skin.
|
||||
|
||||
|
||||
###Skull Support
|
||||
Fixed skull load bug.
|
||||
|
||||
###Transparent Skin Support
|
||||
|
||||
##Default Load List
|
||||
- [Mojang](http://www.minecraft.net/) (Mojang API)
|
||||
- [Blessing Skin](https://skin.prinzeugen.net/) (CustomSkinAPI)
|
||||
- SkinMe (UniSkinAPI)
|
||||
- [McSkin](https://www.mcskin.cc/) (CustomSkinAPI)
|
||||
If you want to apply to add other skin website to default list, please go to [issue](https://github.com/JLChnToZ/MCCustomSkinLoader/issues).
|
||||
|
||||
##Copyright
|
||||
|
||||
Reference in new issue
Block a user