@Environment(value=CLIENT) public class PlayerSkinProvider extends Object
Modifier and Type | Class and Description |
---|---|
static interface |
PlayerSkinProvider.SkinTextureAvailableCallback |
Modifier and Type | Field and Description |
---|---|
private com.mojang.authlib.minecraft.MinecraftSessionService |
sessionService |
private LoadingCache<String,Map<com.mojang.authlib.minecraft.MinecraftProfileTexture.Type,com.mojang.authlib.minecraft.MinecraftProfileTexture>> |
skinCache |
private File |
skinCacheDir |
private TextureManager |
textureManager |
Constructor and Description |
---|
PlayerSkinProvider(TextureManager textureManager,
File skinCacheDir,
com.mojang.authlib.minecraft.MinecraftSessionService sessionService) |
Modifier and Type | Method and Description |
---|---|
Map<com.mojang.authlib.minecraft.MinecraftProfileTexture.Type,com.mojang.authlib.minecraft.MinecraftProfileTexture> |
getTextures(com.mojang.authlib.GameProfile gameProfile) |
void |
loadSkin(com.mojang.authlib.GameProfile profile,
PlayerSkinProvider.SkinTextureAvailableCallback callback,
boolean requireSecure) |
Identifier |
loadSkin(com.mojang.authlib.minecraft.MinecraftProfileTexture profileTexture,
com.mojang.authlib.minecraft.MinecraftProfileTexture.Type type) |
private Identifier |
loadSkin(com.mojang.authlib.minecraft.MinecraftProfileTexture profileTexture,
com.mojang.authlib.minecraft.MinecraftProfileTexture.Type type,
PlayerSkinProvider.SkinTextureAvailableCallback callback) |
private final TextureManager textureManager
private final File skinCacheDir
private final com.mojang.authlib.minecraft.MinecraftSessionService sessionService
private final LoadingCache<String,Map<com.mojang.authlib.minecraft.MinecraftProfileTexture.Type,com.mojang.authlib.minecraft.MinecraftProfileTexture>> skinCache
public PlayerSkinProvider(TextureManager textureManager, File skinCacheDir, com.mojang.authlib.minecraft.MinecraftSessionService sessionService)
public Identifier loadSkin(com.mojang.authlib.minecraft.MinecraftProfileTexture profileTexture, com.mojang.authlib.minecraft.MinecraftProfileTexture.Type type)
private Identifier loadSkin(com.mojang.authlib.minecraft.MinecraftProfileTexture profileTexture, com.mojang.authlib.minecraft.MinecraftProfileTexture.Type type, @Nullable PlayerSkinProvider.SkinTextureAvailableCallback callback)
public void loadSkin(com.mojang.authlib.GameProfile profile, PlayerSkinProvider.SkinTextureAvailableCallback callback, boolean requireSecure)
public Map<com.mojang.authlib.minecraft.MinecraftProfileTexture.Type,com.mojang.authlib.minecraft.MinecraftProfileTexture> getTextures(com.mojang.authlib.GameProfile gameProfile)