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 TypeMethodDescriptionvoid
close()
com.mojang.blaze3d.platform.NativeImage
getImage()
net.minecraft.client.resources.metadata.texture.TextureMetadataSection
load
(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:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
-
throwIfError
- Throws:
IOException
-