Class PreloadedTexture
- java.lang.Object
-
- net.minecraft.client.renderer.texture.Texture
-
- net.minecraft.client.renderer.texture.SimpleTexture
-
- net.minecraft.client.renderer.texture.PreloadedTexture
-
- All Implemented Interfaces:
java.lang.AutoCloseable
public class PreloadedTexture 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.util.concurrent.CompletableFuture<SimpleTexture.TextureData>
future
-
Fields inherited from class net.minecraft.client.renderer.texture.SimpleTexture
location
-
-
Constructor Summary
Constructors Constructor Description PreloadedTexture(IResourceManager p_i50911_1_, ResourceLocation p_i50911_2_, java.util.concurrent.Executor p_i50911_3_)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description private static java.util.concurrent.Executor
executor(java.util.concurrent.Executor p_229205_0_)
java.util.concurrent.CompletableFuture<java.lang.Void>
getFuture()
protected SimpleTexture.TextureData
getTextureImage(IResourceManager p_215246_1_)
void
reset(TextureManager p_215244_1_, IResourceManager p_215244_2_, ResourceLocation p_215244_3_, java.util.concurrent.Executor p_215244_4_)
-
Methods inherited from class net.minecraft.client.renderer.texture.SimpleTexture
load
-
Methods inherited from class net.minecraft.client.renderer.texture.Texture
bind, close, getId, releaseId, restoreLastBlurMipmap, setBlurMipmap, setFilter
-
-
-
-
Field Detail
-
future
@Nullable private java.util.concurrent.CompletableFuture<SimpleTexture.TextureData> future
-
-
Constructor Detail
-
PreloadedTexture
public PreloadedTexture(IResourceManager p_i50911_1_, ResourceLocation p_i50911_2_, java.util.concurrent.Executor p_i50911_3_)
-
-
Method Detail
-
getTextureImage
protected SimpleTexture.TextureData getTextureImage(IResourceManager p_215246_1_)
- Overrides:
getTextureImage
in classSimpleTexture
-
getFuture
public java.util.concurrent.CompletableFuture<java.lang.Void> getFuture()
-
reset
public void reset(TextureManager p_215244_1_, IResourceManager p_215244_2_, ResourceLocation p_215244_3_, java.util.concurrent.Executor p_215244_4_)
-
executor
private static java.util.concurrent.Executor executor(java.util.concurrent.Executor p_229205_0_)
-
-