Class SimpleCubemapTexture.TextureImage
java.lang.Object
foundry.veil.api.client.render.texture.SimpleCubemapTexture.TextureImage
- All Implemented Interfaces:
Closeable,AutoCloseable
- Enclosing class:
SimpleCubemapTexture
-
Constructor Summary
ConstructorsConstructorDescriptionTextureImage(IOException exception) TextureImage(net.minecraft.client.resources.metadata.texture.TextureMetadataSection metadata, com.mojang.blaze3d.platform.NativeImage image) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()com.mojang.blaze3d.platform.NativeImagegetImage()net.minecraft.client.resources.metadata.texture.TextureMetadataSectionload(net.minecraft.server.packs.resources.ResourceManager resourceManager, net.minecraft.resources.ResourceLocation location) void
-
Constructor Details
-
TextureImage
-
TextureImage
public TextureImage(@Nullable net.minecraft.client.resources.metadata.texture.TextureMetadataSection metadata, com.mojang.blaze3d.platform.NativeImage image)
-
-
Method Details
-
load
public static SimpleCubemapTexture.TextureImage load(net.minecraft.server.packs.resources.ResourceManager resourceManager, net.minecraft.resources.ResourceLocation location) -
getTextureMetadata
@Nullable public net.minecraft.client.resources.metadata.texture.TextureMetadataSection getTextureMetadata() -
getImage
- Throws:
IOException
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable
-
throwIfError
- Throws:
IOException
-