Class SimpleArrayTexture.TextureImage
java.lang.Object
foundry.veil.api.client.render.texture.SimpleArrayTexture.TextureImage
- All Implemented Interfaces:
AutoCloseable,org.lwjgl.system.NativeResource
- Enclosing class:
SimpleArrayTexture
public static class SimpleArrayTexture.TextureImage
extends Object
implements org.lwjgl.system.NativeResource
-
Constructor Summary
ConstructorsConstructorDescriptionTextureImage(com.mojang.blaze3d.platform.NativeImage image, net.minecraft.client.resources.metadata.texture.TextureMetadataSection metadata) TextureImage(IOException exception) -
Method Summary
Modifier and TypeMethodDescriptionvoidfree()com.mojang.blaze3d.platform.NativeImagegetImage()net.minecraft.client.resources.metadata.texture.TextureMetadataSectionstatic SimpleArrayTexture.TextureImage[]load(net.minecraft.server.packs.resources.ResourceManager resourceManager, net.minecraft.resources.ResourceLocation... locations) voidMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.lwjgl.system.NativeResource
close
-
Constructor Details
-
TextureImage
-
TextureImage
public TextureImage(com.mojang.blaze3d.platform.NativeImage image, @Nullable net.minecraft.client.resources.metadata.texture.TextureMetadataSection metadata)
-
-
Method Details
-
load
public static SimpleArrayTexture.TextureImage[] load(net.minecraft.server.packs.resources.ResourceManager resourceManager, net.minecraft.resources.ResourceLocation... locations) -
getImage
- Throws:
IOException
-
getTextureMetadata
@Nullable public net.minecraft.client.resources.metadata.texture.TextureMetadataSection getTextureMetadata() -
getException
-
free
public void free()- Specified by:
freein interfaceorg.lwjgl.system.NativeResource
-
throwIfError
- Throws:
IOException
-