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.IOException
public void close()
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
public void checkException() throws java.io.IOException
java.io.IOException