public class SkinManager
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static interface |
SkinManager.SkinAvailableCallback |
Constructor and Description |
---|
SkinManager(TextureManager textureManagerInstance,
java.io.File skinCacheDirectory,
MinecraftSessionService sessionService) |
Modifier and Type | Method and Description |
---|---|
void |
loadProfileTextures(GameProfile profile,
SkinManager.SkinAvailableCallback skinAvailableCallback,
boolean requireSecure) |
ResourceLocation |
loadSkin(MinecraftProfileTexture profileTexture,
Type textureType)
Used in the Skull renderer to fetch a skin.
|
ResourceLocation |
loadSkin(MinecraftProfileTexture profileTexture,
Type textureType,
SkinManager.SkinAvailableCallback skinAvailableCallback)
May download the skin if its not in the cache, can be passed a SkinManager#SkinAvailableCallback for handling
|
java.util.Map<Type,MinecraftProfileTexture> |
loadSkinFromCache(GameProfile profile) |
public SkinManager(TextureManager textureManagerInstance, java.io.File skinCacheDirectory, MinecraftSessionService sessionService)
public ResourceLocation loadSkin(MinecraftProfileTexture profileTexture, Type textureType)
public ResourceLocation loadSkin(MinecraftProfileTexture profileTexture, Type textureType, SkinManager.SkinAvailableCallback skinAvailableCallback)
public void loadProfileTextures(GameProfile profile, SkinManager.SkinAvailableCallback skinAvailableCallback, boolean requireSecure)
public java.util.Map<Type,MinecraftProfileTexture> loadSkinFromCache(GameProfile profile)