Class SimpleTexture.TextureData
- java.lang.Object
-
- net.minecraft.client.renderer.texture.SimpleTexture.TextureData
-
- All Implemented Interfaces:
java.io.Closeable
,java.lang.AutoCloseable
- Enclosing class:
- SimpleTexture
public static class SimpleTexture.TextureData extends java.lang.Object implements java.io.Closeable
-
-
Field Summary
Fields Modifier and Type Field Description private java.io.IOException
exception
private NativeImage
image
private TextureMetadataSection
metadata
-
Constructor Summary
Constructors Constructor Description TextureData(java.io.IOException p_i50473_1_)
TextureData(TextureMetadataSection p_i50474_1_, NativeImage p_i50474_2_)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
NativeImage
getImage()
TextureMetadataSection
getTextureMetadata()
static SimpleTexture.TextureData
load(IResourceManager p_217799_0_, ResourceLocation p_217799_1_)
void
throwIfError()
-
-
-
Field Detail
-
metadata
@Nullable private final TextureMetadataSection metadata
-
image
@Nullable private final NativeImage image
-
exception
@Nullable private final java.io.IOException exception
-
-
Constructor Detail
-
TextureData
public TextureData(java.io.IOException p_i50473_1_)
-
TextureData
public TextureData(@Nullable TextureMetadataSection p_i50474_1_, NativeImage p_i50474_2_)
-
-
Method Detail
-
load
public static SimpleTexture.TextureData load(IResourceManager p_217799_0_, ResourceLocation p_217799_1_)
-
getTextureMetadata
@Nullable public TextureMetadataSection getTextureMetadata()
-
getImage
public NativeImage getImage() throws java.io.IOException
- Throws:
java.io.IOException
-
close
public void close()
- Specified by:
close
in interfacejava.lang.AutoCloseable
- Specified by:
close
in interfacejava.io.Closeable
-
throwIfError
public void throwIfError() throws java.io.IOException
- Throws:
java.io.IOException
-
-