Class SkinManager


  • public class SkinManager
    extends java.lang.Object
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private com.google.common.cache.LoadingCache<java.lang.String,​java.util.Map<com.mojang.authlib.minecraft.MinecraftProfileTexture.Type,​com.mojang.authlib.minecraft.MinecraftProfileTexture>> insecureSkinCache  
      private com.mojang.authlib.minecraft.MinecraftSessionService sessionService  
      private java.io.File skinsDirectory  
      private TextureManager textureManager  
    • Constructor Summary

      Constructors 
      Constructor Description
      SkinManager​(TextureManager p_i1044_1_, java.io.File p_i1044_2_, com.mojang.authlib.minecraft.MinecraftSessionService p_i1044_3_)  
    • Field Detail

      • skinsDirectory

        private final java.io.File skinsDirectory
      • sessionService

        private final com.mojang.authlib.minecraft.MinecraftSessionService sessionService
      • insecureSkinCache

        private final com.google.common.cache.LoadingCache<java.lang.String,​java.util.Map<com.mojang.authlib.minecraft.MinecraftProfileTexture.Type,​com.mojang.authlib.minecraft.MinecraftProfileTexture>> insecureSkinCache
    • Constructor Detail

      • SkinManager

        public SkinManager​(TextureManager p_i1044_1_,
                           java.io.File p_i1044_2_,
                           com.mojang.authlib.minecraft.MinecraftSessionService p_i1044_3_)
    • Method Detail

      • registerTexture

        public ResourceLocation registerTexture​(com.mojang.authlib.minecraft.MinecraftProfileTexture p_152792_1_,
                                                com.mojang.authlib.minecraft.MinecraftProfileTexture.Type p_152792_2_)
      • registerTexture

        private ResourceLocation registerTexture​(com.mojang.authlib.minecraft.MinecraftProfileTexture p_152789_1_,
                                                 com.mojang.authlib.minecraft.MinecraftProfileTexture.Type p_152789_2_,
                                                 @Nullable
                                                 SkinManager.ISkinAvailableCallback p_152789_3_)
      • getInsecureSkinInformation

        public java.util.Map<com.mojang.authlib.minecraft.MinecraftProfileTexture.Type,​com.mojang.authlib.minecraft.MinecraftProfileTexture> getInsecureSkinInformation​(com.mojang.authlib.GameProfile p_152788_1_)