Class ServerSkinCache
- java.lang.Object
-
- net.lax1dude.eaglercraft.v1_8.profile.ServerSkinCache
-
public class ServerSkinCache extends java.lang.Object
Copyright (c) 2022-2023 LAX1DUDE. All Rights Reserved. WITH THE EXCEPTION OF PATCH FILES, MINIFIED JAVASCRIPT, AND ALL FILES NORMALLY FOUND IN AN UNMODIFIED MINECRAFT RESOURCE PACK, YOU ARE NOT ALLOWED TO SHARE, DISTRIBUTE, OR REPURPOSE ANY FILE USED BY OR PRODUCED BY THE SOFTWARE IN THIS REPOSITORY WITHOUT PRIOR PERMISSION FROM THE PROJECT AUTHOR. NOT FOR COMMERCIAL OR MALICIOUS USE (please read the 'LICENSE' file this repo's root directory for more info)
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static class
ServerSkinCache.CacheCustomSkin
class
ServerSkinCache.SkinCacheEntry
protected static class
ServerSkinCache.WaitingSkin
-
Field Summary
Fields Modifier and Type Field Description protected TextureManager
textureManager
-
Constructor Summary
Constructors Constructor Description ServerSkinCache(EaglercraftNetworkManager networkManager, TextureManager textureManager)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
cacheSkinCustom(EaglercraftUUID player, byte[] pixels, SkinModel model)
void
cacheSkinPreset(EaglercraftUUID player, int presetId)
void
destroy()
void
evictSkin(EaglercraftUUID uuid)
void
flush()
ServerSkinCache.SkinCacheEntry
getClientPlayerSkin()
SkinModel
getRequestedSkinType(EaglercraftUUID waiting)
ServerSkinCache.SkinCacheEntry
getSkin(java.lang.String url, SkinModel skinModelResponse)
ServerSkinCache.SkinCacheEntry
getSkin(EaglercraftUUID player)
ServerSkinCache.SkinCacheEntry
getSkin(GameProfile player)
-
-
-
Field Detail
-
textureManager
protected final TextureManager textureManager
-
-
Constructor Detail
-
ServerSkinCache
public ServerSkinCache(EaglercraftNetworkManager networkManager, TextureManager textureManager)
-
-
Method Detail
-
getClientPlayerSkin
public ServerSkinCache.SkinCacheEntry getClientPlayerSkin()
-
getSkin
public ServerSkinCache.SkinCacheEntry getSkin(GameProfile player)
-
getSkin
public ServerSkinCache.SkinCacheEntry getSkin(EaglercraftUUID player)
-
getSkin
public ServerSkinCache.SkinCacheEntry getSkin(java.lang.String url, SkinModel skinModelResponse)
-
cacheSkinPreset
public void cacheSkinPreset(EaglercraftUUID player, int presetId)
-
cacheSkinCustom
public void cacheSkinCustom(EaglercraftUUID player, byte[] pixels, SkinModel model)
-
getRequestedSkinType
public SkinModel getRequestedSkinType(EaglercraftUUID waiting)
-
flush
public void flush()
-
destroy
public void destroy()
-
evictSkin
public void evictSkin(EaglercraftUUID uuid)
-
-