Class SkinTextureDownloader
java.lang.Object
net.minecraft.client.renderer.texture.SkinTextureDownloader
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final intprivate static final org.slf4j.Loggerprivate final Executorprivate final Proxyprivate static final intprivate static final intprivate final TextureManager -
Constructor Summary
ConstructorsConstructorDescriptionSkinTextureDownloader(Proxy proxy, TextureManager textureManager, Executor mainThreadExecutor) -
Method Summary
Modifier and TypeMethodDescriptionprivate static voiddoNotchTransparencyHack(NativeImage image, int x0, int y0, int x1, int y1) downloadAndRegisterSkin(Identifier textureId, Path localCopy, String url, boolean processLegacySkin) private NativeImagedownloadSkin(Path localCopy, String url) private static NativeImageprocessLegacySkin(NativeImage image, String url) private CompletableFuture<ClientAsset.Texture> registerTextureInManager(ClientAsset.Texture textureId, NativeImage contents) private static voidsetNoAlpha(NativeImage image, int x0, int y0, int x1, int y1)
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGER -
SKIN_WIDTH
private static final int SKIN_WIDTH- See Also:
-
SKIN_HEIGHT
private static final int SKIN_HEIGHT- See Also:
-
LEGACY_SKIN_HEIGHT
private static final int LEGACY_SKIN_HEIGHT- See Also:
-
proxy
-
textureManager
-
mainThreadExecutor
-
-
Constructor Details
-
SkinTextureDownloader
public SkinTextureDownloader(Proxy proxy, TextureManager textureManager, Executor mainThreadExecutor)
-
-
Method Details
-
downloadAndRegisterSkin
public CompletableFuture<ClientAsset.Texture> downloadAndRegisterSkin(Identifier textureId, Path localCopy, String url, boolean processLegacySkin) -
downloadSkin
- Throws:
IOException
-
registerTextureInManager
private CompletableFuture<ClientAsset.Texture> registerTextureInManager(ClientAsset.Texture textureId, NativeImage contents) -
processLegacySkin
-
doNotchTransparencyHack
-
setNoAlpha
-