Class DownloadingTexture
java.lang.Object
net.minecraft.client.renderer.texture.Texture
net.minecraft.client.renderer.texture.SimpleTexture
net.minecraft.client.renderer.texture.DownloadingTexture
- All Implemented Interfaces:
AutoCloseable
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.client.renderer.texture.SimpleTexture
SimpleTexture.TextureData
-
Field Summary
Modifier and TypeFieldDescriptionprivate final File
private CompletableFuture<?>
private static final org.apache.logging.log4j.Logger
private final Runnable
private final boolean
private boolean
private final String
Fields inherited from class net.minecraft.client.renderer.texture.SimpleTexture
location
-
Constructor Summary
ConstructorDescriptionDownloadingTexture
(File p_i226043_1_, String p_i226043_2_, ResourceLocation p_i226043_3_, boolean p_i226043_4_, Runnable p_i226043_5_) -
Method Summary
Modifier and TypeMethodDescriptionprivate static void
doNotchTransparencyHack
(NativeImage p_229158_0_, int p_229158_1_, int p_229158_2_, int p_229158_3_, int p_229158_4_) private NativeImage
load
(InputStream p_229159_1_) void
load
(IResourceManager p_195413_1_) private void
loadCallback
(NativeImage p_195417_1_) private static NativeImage
processLegacySkin
(NativeImage p_229163_0_) private static void
setNoAlpha
(NativeImage p_229161_0_, int p_229161_1_, int p_229161_2_, int p_229161_3_, int p_229161_4_) private void
upload
(NativeImage p_229160_1_) Methods inherited from class net.minecraft.client.renderer.texture.SimpleTexture
getTextureImage
Methods inherited from class net.minecraft.client.renderer.texture.Texture
bind, close, getId, releaseId, reset, restoreLastBlurMipmap, setBlurMipmap, setFilter
-
Field Details
-
LOGGER
private static final org.apache.logging.log4j.Logger LOGGER -
file
-
urlString
-
processLegacySkin
private final boolean processLegacySkin -
onDownloaded
-
future
-
uploaded
private boolean uploaded
-
-
Constructor Details
-
DownloadingTexture
public DownloadingTexture(@Nullable File p_i226043_1_, String p_i226043_2_, ResourceLocation p_i226043_3_, boolean p_i226043_4_, @Nullable Runnable p_i226043_5_)
-
-
Method Details
-
loadCallback
-
upload
-
load
- Overrides:
load
in classSimpleTexture
- Throws:
IOException
-
load
-
processLegacySkin
-
doNotchTransparencyHack
private static void doNotchTransparencyHack(NativeImage p_229158_0_, int p_229158_1_, int p_229158_2_, int p_229158_3_, int p_229158_4_) -
setNoAlpha
private static void setNoAlpha(NativeImage p_229161_0_, int p_229161_1_, int p_229161_2_, int p_229161_3_, int p_229161_4_)
-