Class SkinTextureDownloader
java.lang.Object
net.minecraft.client.renderer.texture.SkinTextureDownloader
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final int
private static final org.slf4j.Logger
private static final int
private static final int
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static void
doNotchTransparencyHack
(NativeImage pImage, int pMinX, int pMinY, int pMaxX, int pMaxY) static CompletableFuture
<ResourceLocation> downloadAndRegisterSkin
(ResourceLocation pTextureLocation, Path pPath, String pUrl, boolean pIsLegacySkin) private static NativeImage
downloadSkin
(Path pPath, String pUrl) private static NativeImage
processLegacySkin
(NativeImage pImage, String pUrl) private static CompletableFuture
<ResourceLocation> registerTextureInManager
(ResourceLocation pLocation, NativeImage pImage) private static void
setNoAlpha
(NativeImage pImage, int pMinX, int pMinY, int pMaxX, int pMaxY)
-
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:
-
-
Constructor Details
-
SkinTextureDownloader
public SkinTextureDownloader()
-
-
Method Details
-
downloadAndRegisterSkin
public static CompletableFuture<ResourceLocation> downloadAndRegisterSkin(ResourceLocation pTextureLocation, Path pPath, String pUrl, boolean pIsLegacySkin) -
downloadSkin
- Throws:
IOException
-
registerTextureInManager
private static CompletableFuture<ResourceLocation> registerTextureInManager(ResourceLocation pLocation, NativeImage pImage) -
processLegacySkin
-
doNotchTransparencyHack
private static void doNotchTransparencyHack(NativeImage pImage, int pMinX, int pMinY, int pMaxX, int pMaxY) -
setNoAlpha
-