public class SkinManager
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static interface |
SkinManager.SkinAvailableCallback |
Modifier and Type | Field and Description |
---|---|
private com.mojang.authlib.minecraft.MinecraftSessionService |
sessionService |
private java.io.File |
skinCacheDir |
private com.google.common.cache.LoadingCache<com.mojang.authlib.GameProfile,java.util.Map<com.mojang.authlib.minecraft.MinecraftProfileTexture.Type,com.mojang.authlib.minecraft.MinecraftProfileTexture>> |
skinCacheLoader |
private TextureManager |
textureManager |
private static java.util.concurrent.ExecutorService |
THREAD_POOL |
Constructor and Description |
---|
SkinManager(TextureManager textureManagerInstance,
java.io.File skinCacheDirectory,
com.mojang.authlib.minecraft.MinecraftSessionService sessionService) |
Modifier and Type | Method and Description |
---|---|
void |
loadProfileTextures(com.mojang.authlib.GameProfile profile,
SkinManager.SkinAvailableCallback skinAvailableCallback,
boolean requireSecure) |
ResourceLocation |
loadSkin(com.mojang.authlib.minecraft.MinecraftProfileTexture profileTexture,
com.mojang.authlib.minecraft.MinecraftProfileTexture.Type textureType) |
ResourceLocation |
loadSkin(com.mojang.authlib.minecraft.MinecraftProfileTexture profileTexture,
com.mojang.authlib.minecraft.MinecraftProfileTexture.Type textureType,
SkinManager.SkinAvailableCallback skinAvailableCallback) |
java.util.Map<com.mojang.authlib.minecraft.MinecraftProfileTexture.Type,com.mojang.authlib.minecraft.MinecraftProfileTexture> |
loadSkinFromCache(com.mojang.authlib.GameProfile profile) |
private static final java.util.concurrent.ExecutorService THREAD_POOL
private final TextureManager textureManager
private final java.io.File skinCacheDir
private final com.mojang.authlib.minecraft.MinecraftSessionService sessionService
private final com.google.common.cache.LoadingCache<com.mojang.authlib.GameProfile,java.util.Map<com.mojang.authlib.minecraft.MinecraftProfileTexture.Type,com.mojang.authlib.minecraft.MinecraftProfileTexture>> skinCacheLoader
public SkinManager(TextureManager textureManagerInstance, java.io.File skinCacheDirectory, com.mojang.authlib.minecraft.MinecraftSessionService sessionService)
public ResourceLocation loadSkin(com.mojang.authlib.minecraft.MinecraftProfileTexture profileTexture, com.mojang.authlib.minecraft.MinecraftProfileTexture.Type textureType)
public ResourceLocation loadSkin(com.mojang.authlib.minecraft.MinecraftProfileTexture profileTexture, com.mojang.authlib.minecraft.MinecraftProfileTexture.Type textureType, @Nullable SkinManager.SkinAvailableCallback skinAvailableCallback)
public void loadProfileTextures(com.mojang.authlib.GameProfile profile, SkinManager.SkinAvailableCallback skinAvailableCallback, boolean requireSecure)
public java.util.Map<com.mojang.authlib.minecraft.MinecraftProfileTexture.Type,com.mojang.authlib.minecraft.MinecraftProfileTexture> loadSkinFromCache(com.mojang.authlib.GameProfile profile)