public class SkinManager
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static interface |
SkinManager.ISkinAvailableCallback |
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 |
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.ISkinAvailableCallback 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.ISkinAvailableCallback skinAvailableCallback) |
java.util.Map<com.mojang.authlib.minecraft.MinecraftProfileTexture.Type,com.mojang.authlib.minecraft.MinecraftProfileTexture> |
loadSkinFromCache(com.mojang.authlib.GameProfile profile) |
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.ISkinAvailableCallback skinAvailableCallback)
public void loadProfileTextures(com.mojang.authlib.GameProfile profile, SkinManager.ISkinAvailableCallback skinAvailableCallback, boolean requireSecure)
public java.util.Map<com.mojang.authlib.minecraft.MinecraftProfileTexture.Type,com.mojang.authlib.minecraft.MinecraftProfileTexture> loadSkinFromCache(com.mojang.authlib.GameProfile profile)