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 minX, int minY, int maxX, int maxY) downloadAndRegisterSkin(ResourceLocation textureLocation, Path path, String url, boolean isLegacySkin) private NativeImagedownloadSkin(Path path, String url) private static NativeImageprocessLegacySkin(NativeImage image, String url) private CompletableFuture<ClientAsset.Texture> registerTextureInManager(ClientAsset.Texture texture, NativeImage image) private static voidsetNoAlpha(NativeImage image, int minX, int minY, int maxX, int maxY)
-
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(ResourceLocation textureLocation, Path path, String url, boolean isLegacySkin) -
downloadSkin
- Throws:
IOException
-
registerTextureInManager
private CompletableFuture<ClientAsset.Texture> registerTextureInManager(ClientAsset.Texture texture, NativeImage image) -
processLegacySkin
-
doNotchTransparencyHack
private static void doNotchTransparencyHack(NativeImage image, int minX, int minY, int maxX, int maxY) -
setNoAlpha
-