public static class SimpleTexture.TextureData
extends java.lang.Object
implements java.io.Closeable
| Modifier and Type | Field and Description |
|---|---|
private java.io.IOException |
exception |
private TextureMetadataSection |
metadata |
private NativeImage |
nativeImage |
| Constructor and Description |
|---|
TextureData(java.io.IOException exceptionIn) |
TextureData(TextureMetadataSection metadataIn,
NativeImage imageIn) |
| Modifier and Type | Method and Description |
|---|---|
void |
checkException() |
void |
close() |
TextureMetadataSection |
getMetadata() |
NativeImage |
getNativeImage() |
static SimpleTexture.TextureData |
getTextureData(IResourceManager resourceManagerIn,
ResourceLocation locationIn) |
@Nullable private final TextureMetadataSection metadata
@Nullable private final NativeImage nativeImage
@Nullable private final java.io.IOException exception
public TextureData(java.io.IOException exceptionIn)
public TextureData(@Nullable
TextureMetadataSection metadataIn,
NativeImage imageIn)
public static SimpleTexture.TextureData getTextureData(IResourceManager resourceManagerIn, ResourceLocation locationIn)
@Nullable public TextureMetadataSection getMetadata()
public NativeImage getNativeImage() throws java.io.IOException
java.io.IOExceptionpublic void close()
close in interface java.io.Closeableclose in interface java.lang.AutoCloseablepublic void checkException()
throws java.io.IOException
java.io.IOException