@Environment(value=CLIENT) public class AsyncTexture extends ResourceTexture
ResourceTexture.TextureData
Modifier and Type | Field and Description |
---|---|
private CompletableFuture<ResourceTexture.TextureData> |
future |
location
bilinear, glId, mipmap
Constructor and Description |
---|
AsyncTexture(ResourceManager resourceManager,
Identifier identifier,
Executor executor) |
Modifier and Type | Method and Description |
---|---|
CompletableFuture<Void> |
getLoadCompleteFuture() |
protected ResourceTexture.TextureData |
loadTextureData(ResourceManager resourceManager) |
private static Executor |
method_22808(Executor executor) |
void |
registerTexture(TextureManager textureManager,
ResourceManager resourceManager,
Identifier identifier,
Executor executor) |
load
bindTexture, clearGlId, close, getGlId, setFilter
@Nullable private CompletableFuture<ResourceTexture.TextureData> future
public AsyncTexture(ResourceManager resourceManager, Identifier identifier, Executor executor)
protected ResourceTexture.TextureData loadTextureData(ResourceManager resourceManager)
loadTextureData
in class ResourceTexture
public CompletableFuture<Void> getLoadCompleteFuture()
public void registerTexture(TextureManager textureManager, ResourceManager resourceManager, Identifier identifier, Executor executor)
registerTexture
in class AbstractTexture