Class PlayerSkinRenderCache
java.lang.Object
net.minecraft.client.renderer.PlayerSkinRenderCache
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Durationstatic final RenderTypeprivate final LoadingCache<ResolvableProfile, PlayerSkinRenderCache.RenderInfo> private final ProfileResolverprivate final LoadingCache<ResolvableProfile, CompletableFuture<Optional<PlayerSkinRenderCache.RenderInfo>>> private final SkinManagerprivate final TextureManager -
Constructor Summary
ConstructorsConstructorDescriptionPlayerSkinRenderCache(TextureManager textureManager, SkinManager skinManager, ProfileResolver profileResolver) -
Method Summary
Modifier and TypeMethodDescriptioncreateLookup(ResolvableProfile profile) getOrDefault(ResolvableProfile profile) lookup(ResolvableProfile profile) private static RenderTypeplayerSkinRenderType(PlayerSkin playerSkin)
-
Field Details
-
DEFAULT_PLAYER_SKIN_RENDER_TYPE
-
CACHE_DURATION
-
renderInfoCache
private final LoadingCache<ResolvableProfile, CompletableFuture<Optional<PlayerSkinRenderCache.RenderInfo>>> renderInfoCache -
defaultSkinCache
-
textureManager
-
skinManager
-
profileResolver
-
-
Constructor Details
-
PlayerSkinRenderCache
public PlayerSkinRenderCache(TextureManager textureManager, SkinManager skinManager, ProfileResolver profileResolver)
-
-
Method Details
-
getOrDefault
-
createLookup
-
lookup
public CompletableFuture<Optional<PlayerSkinRenderCache.RenderInfo>> lookup(ResolvableProfile profile) -
playerSkinRenderType
-