@Environment(value=CLIENT) public static class ResourceTexture.TextureData extends Object implements Closeable
| Modifier and Type | Field and Description |
|---|---|
private IOException |
exception |
private NativeImage |
image |
private TextureResourceMetadata |
metadata |
| Constructor and Description |
|---|
TextureData(IOException exception) |
TextureData(TextureResourceMetadata metadata,
NativeImage image) |
| Modifier and Type | Method and Description |
|---|---|
void |
checkException() |
void |
close() |
NativeImage |
getImage() |
TextureResourceMetadata |
getMetadata() |
static ResourceTexture.TextureData |
load(ResourceManager resourceManager,
Identifier identifier) |
@Nullable private final TextureResourceMetadata metadata
@Nullable private final NativeImage image
@Nullable private final IOException exception
public TextureData(IOException exception)
public TextureData(@Nullable TextureResourceMetadata metadata, NativeImage image)
public static ResourceTexture.TextureData load(ResourceManager resourceManager, Identifier identifier)
@Nullable public TextureResourceMetadata getMetadata()
public NativeImage getImage() throws IOException
IOExceptionpublic void close()
close in interface Closeableclose in interface AutoCloseablepublic void checkException()
throws IOException
IOException