Advertisement
Guest User

GuiSkinChanger.Skin is the player's name

a guest
Mar 21st, 2014
223
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.55 KB | None | 0 0
  1. @Override
  2. @SideOnly(Side.CLIENT)
  3. protected ResourceLocation getEntityTexture(Entity entity) {
  4. ResourceLocation resourcelocation = AbstractClientPlayer.locationStevePng;
  5.  
  6. if (GuiSkinChanger.Skin != null && GuiSkinChanger.Skin.length() > 0)
  7. {
  8. resourcelocation = AbstractClientPlayer.getLocationSkull(GuiSkinChanger.Skin);
  9. AbstractClientPlayer.getDownloadImageSkin(resourcelocation, GuiSkinChanger.Skin);
  10. }
  11. return resourcelocation;
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement