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:
java.lang.AutoCloseable
public class DownloadingTexture extends SimpleTexture
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class net.minecraft.client.renderer.texture.SimpleTexture
SimpleTexture.TextureData
-
-
Field Summary
Fields Modifier and Type Field Description private java.io.File
file
private java.util.concurrent.CompletableFuture<?>
future
private static org.apache.logging.log4j.Logger
LOGGER
private java.lang.Runnable
onDownloaded
private boolean
processLegacySkin
private boolean
uploaded
private java.lang.String
urlString
-
Fields inherited from class net.minecraft.client.renderer.texture.SimpleTexture
location
-
-
Constructor Summary
Constructors Constructor Description DownloadingTexture(java.io.File p_i226043_1_, java.lang.String p_i226043_2_, ResourceLocation p_i226043_3_, boolean p_i226043_4_, java.lang.Runnable p_i226043_5_)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description private 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(java.io.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 Detail
-
LOGGER
private static final org.apache.logging.log4j.Logger LOGGER
-
file
@Nullable private final java.io.File file
-
urlString
private final java.lang.String urlString
-
processLegacySkin
private final boolean processLegacySkin
-
onDownloaded
@Nullable private final java.lang.Runnable onDownloaded
-
future
@Nullable private java.util.concurrent.CompletableFuture<?> future
-
uploaded
private boolean uploaded
-
-
Constructor Detail
-
DownloadingTexture
public DownloadingTexture(@Nullable java.io.File p_i226043_1_, java.lang.String p_i226043_2_, ResourceLocation p_i226043_3_, boolean p_i226043_4_, @Nullable java.lang.Runnable p_i226043_5_)
-
-
Method Detail
-
loadCallback
private void loadCallback(NativeImage p_195417_1_)
-
upload
private void upload(NativeImage p_229160_1_)
-
load
public void load(IResourceManager p_195413_1_) throws java.io.IOException
- Overrides:
load
in classSimpleTexture
- Throws:
java.io.IOException
-
load
@Nullable private NativeImage load(java.io.InputStream p_229159_1_)
-
processLegacySkin
private static NativeImage processLegacySkin(NativeImage p_229163_0_)
-
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_)
-
-