public class PreloadedTexture extends SimpleTexture
SimpleTexture.TextureData
Modifier and Type | Field and Description |
---|---|
private java.util.concurrent.CompletableFuture<SimpleTexture.TextureData> |
textureDataFuture |
textureLocation
blur, glTextureId, mipmap
Constructor and Description |
---|
PreloadedTexture(IResourceManager resourceManagerIn,
ResourceLocation locationIn,
java.util.concurrent.Executor executorIn) |
Modifier and Type | Method and Description |
---|---|
java.util.concurrent.CompletableFuture<java.lang.Void> |
getCompletableFuture() |
private static java.util.concurrent.Executor |
getExecutor(java.util.concurrent.Executor executorIn) |
protected SimpleTexture.TextureData |
getTextureData(IResourceManager resourceManager) |
void |
loadTexture(TextureManager textureManagerIn,
IResourceManager resourceManagerIn,
ResourceLocation resourceLocationIn,
java.util.concurrent.Executor executorIn) |
loadTexture
bindTexture, deleteGlTexture, getGlTextureId, restoreLastBlurMipmap, setBlurMipmap, setBlurMipmapDirect
@Nullable private java.util.concurrent.CompletableFuture<SimpleTexture.TextureData> textureDataFuture
public PreloadedTexture(IResourceManager resourceManagerIn, ResourceLocation locationIn, java.util.concurrent.Executor executorIn)
protected SimpleTexture.TextureData getTextureData(IResourceManager resourceManager)
getTextureData
in class SimpleTexture
public java.util.concurrent.CompletableFuture<java.lang.Void> getCompletableFuture()
public void loadTexture(TextureManager textureManagerIn, IResourceManager resourceManagerIn, ResourceLocation resourceLocationIn, java.util.concurrent.Executor executorIn)
loadTexture
in class Texture
private static java.util.concurrent.Executor getExecutor(java.util.concurrent.Executor executorIn)