Class PlayerSkinProvider

java.lang.Object
net.minecraft.client.texture.PlayerSkinProvider

@Environment(CLIENT) public class PlayerSkinProvider extends Object
Mappings:
Namespace Name
official fku
intermediary net/minecraft/class_1071
named net/minecraft/client/texture/PlayerSkinProvider
  • Field Details

    • TEXTURES

      public static final String TEXTURES
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official a Lfku;a:Ljava/lang/String;
      intermediary field_32970 Lnet/minecraft/class_1071;field_32970:Ljava/lang/String;
      named TEXTURES Lnet/minecraft/client/texture/PlayerSkinProvider;TEXTURES:Ljava/lang/String;
    • textureManager

      private final TextureManager textureManager
      Mappings:
      Namespace Name Mixin selector
      official b Lfku;b:Lfkf;
      intermediary field_5304 Lnet/minecraft/class_1071;field_5304:Lnet/minecraft/class_1060;
      named textureManager Lnet/minecraft/client/texture/PlayerSkinProvider;textureManager:Lnet/minecraft/client/texture/TextureManager;
    • skinCacheDir

      private final File skinCacheDir
      Mappings:
      Namespace Name Mixin selector
      official c Lfku;c:Ljava/io/File;
      intermediary field_5305 Lnet/minecraft/class_1071;field_5305:Ljava/io/File;
      named skinCacheDir Lnet/minecraft/client/texture/PlayerSkinProvider;skinCacheDir:Ljava/io/File;
    • sessionService

      private final com.mojang.authlib.minecraft.MinecraftSessionService sessionService
      Mappings:
      Namespace Name Mixin selector
      official d Lfku;d:Lcom/mojang/authlib/minecraft/MinecraftSessionService;
      intermediary field_5308 Lnet/minecraft/class_1071;field_5308:Lcom/mojang/authlib/minecraft/MinecraftSessionService;
      named sessionService Lnet/minecraft/client/texture/PlayerSkinProvider;sessionService:Lcom/mojang/authlib/minecraft/MinecraftSessionService;
    • skinCache

      private final LoadingCache<String,Map<com.mojang.authlib.minecraft.MinecraftProfileTexture.Type,com.mojang.authlib.minecraft.MinecraftProfileTexture>> skinCache
      Mappings:
      Namespace Name Mixin selector
      official e Lfku;e:Lcom/google/common/cache/LoadingCache;
      intermediary field_5306 Lnet/minecraft/class_1071;field_5306:Lcom/google/common/cache/LoadingCache;
      named skinCache Lnet/minecraft/client/texture/PlayerSkinProvider;skinCache:Lcom/google/common/cache/LoadingCache;
  • Constructor Details

    • PlayerSkinProvider

      public PlayerSkinProvider(TextureManager textureManager, File skinCacheDir, com.mojang.authlib.minecraft.MinecraftSessionService sessionService)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lfku;<init>(Lfkf;Ljava/io/File;Lcom/mojang/authlib/minecraft/MinecraftSessionService;)V
      intermediary <init> Lnet/minecraft/class_1071;<init>(Lnet/minecraft/class_1060;Ljava/io/File;Lcom/mojang/authlib/minecraft/MinecraftSessionService;)V
      named <init> Lnet/minecraft/client/texture/PlayerSkinProvider;<init>(Lnet/minecraft/client/texture/TextureManager;Ljava/io/File;Lcom/mojang/authlib/minecraft/MinecraftSessionService;)V
  • Method Details

    • loadSkin

      public Identifier loadSkin(com.mojang.authlib.minecraft.MinecraftProfileTexture profileTexture, com.mojang.authlib.minecraft.MinecraftProfileTexture.Type type)
      Mappings:
      Namespace Name Mixin selector
      official a Lfku;a(Lcom/mojang/authlib/minecraft/MinecraftProfileTexture;Lcom/mojang/authlib/minecraft/MinecraftProfileTexture$Type;)Labb;
      intermediary method_4656 Lnet/minecraft/class_1071;method_4656(Lcom/mojang/authlib/minecraft/MinecraftProfileTexture;Lcom/mojang/authlib/minecraft/MinecraftProfileTexture$Type;)Lnet/minecraft/class_2960;
      named loadSkin Lnet/minecraft/client/texture/PlayerSkinProvider;loadSkin(Lcom/mojang/authlib/minecraft/MinecraftProfileTexture;Lcom/mojang/authlib/minecraft/MinecraftProfileTexture$Type;)Lnet/minecraft/util/Identifier;
    • loadSkin

      private Identifier loadSkin(com.mojang.authlib.minecraft.MinecraftProfileTexture profileTexture, com.mojang.authlib.minecraft.MinecraftProfileTexture.Type type, @Nullable @Nullable PlayerSkinProvider.SkinTextureAvailableCallback callback)
      Mappings:
      Namespace Name Mixin selector
      official a Lfku;a(Lcom/mojang/authlib/minecraft/MinecraftProfileTexture;Lcom/mojang/authlib/minecraft/MinecraftProfileTexture$Type;Lfku$a;)Labb;
      intermediary method_4651 Lnet/minecraft/class_1071;method_4651(Lcom/mojang/authlib/minecraft/MinecraftProfileTexture;Lcom/mojang/authlib/minecraft/MinecraftProfileTexture$Type;Lnet/minecraft/class_1071$class_1072;)Lnet/minecraft/class_2960;
      named loadSkin Lnet/minecraft/client/texture/PlayerSkinProvider;loadSkin(Lcom/mojang/authlib/minecraft/MinecraftProfileTexture;Lcom/mojang/authlib/minecraft/MinecraftProfileTexture$Type;Lnet/minecraft/client/texture/PlayerSkinProvider$SkinTextureAvailableCallback;)Lnet/minecraft/util/Identifier;
    • getSkinId

      private static Identifier getSkinId(com.mojang.authlib.minecraft.MinecraftProfileTexture.Type skinType, String hash)
      Mappings:
      Namespace Name Mixin selector
      official a Lfku;a(Lcom/mojang/authlib/minecraft/MinecraftProfileTexture$Type;Ljava/lang/String;)Labb;
      intermediary method_45033 Lnet/minecraft/class_1071;method_45033(Lcom/mojang/authlib/minecraft/MinecraftProfileTexture$Type;Ljava/lang/String;)Lnet/minecraft/class_2960;
      named getSkinId Lnet/minecraft/client/texture/PlayerSkinProvider;getSkinId(Lcom/mojang/authlib/minecraft/MinecraftProfileTexture$Type;Ljava/lang/String;)Lnet/minecraft/util/Identifier;
    • loadSkin

      public void loadSkin(com.mojang.authlib.GameProfile profile, PlayerSkinProvider.SkinTextureAvailableCallback callback, boolean requireSecure)
      Mappings:
      Namespace Name Mixin selector
      official a Lfku;a(Lcom/mojang/authlib/GameProfile;Lfku$a;Z)V
      intermediary method_4652 Lnet/minecraft/class_1071;method_4652(Lcom/mojang/authlib/GameProfile;Lnet/minecraft/class_1071$class_1072;Z)V
      named loadSkin Lnet/minecraft/client/texture/PlayerSkinProvider;loadSkin(Lcom/mojang/authlib/GameProfile;Lnet/minecraft/client/texture/PlayerSkinProvider$SkinTextureAvailableCallback;Z)V
    • getTextures

      public Map<com.mojang.authlib.minecraft.MinecraftProfileTexture.Type,com.mojang.authlib.minecraft.MinecraftProfileTexture> getTextures(com.mojang.authlib.GameProfile profile)
      Mappings:
      Namespace Name Mixin selector
      official a Lfku;a(Lcom/mojang/authlib/GameProfile;)Ljava/util/Map;
      intermediary method_4654 Lnet/minecraft/class_1071;method_4654(Lcom/mojang/authlib/GameProfile;)Ljava/util/Map;
      named getTextures Lnet/minecraft/client/texture/PlayerSkinProvider;getTextures(Lcom/mojang/authlib/GameProfile;)Ljava/util/Map;
    • loadSkin

      public Identifier loadSkin(com.mojang.authlib.GameProfile profile)
      Returns the ID of profile's skin, or the default skin for the profile's UUID if the skin is missing.
      Returns:
      the ID of profile's skin, or the default skin for the profile's UUID if the skin is missing
      Mappings:
      Namespace Name Mixin selector
      official b Lfku;b(Lcom/mojang/authlib/GameProfile;)Labb;
      intermediary method_44705 Lnet/minecraft/class_1071;method_44705(Lcom/mojang/authlib/GameProfile;)Lnet/minecraft/class_2960;
      named loadSkin Lnet/minecraft/client/texture/PlayerSkinProvider;loadSkin(Lcom/mojang/authlib/GameProfile;)Lnet/minecraft/util/Identifier;