Class SimpleCubemapTexture
java.lang.Object
net.minecraft.client.renderer.texture.AbstractTexture
foundry.veil.api.client.render.texture.CubemapTexture
foundry.veil.api.client.render.texture.SimpleCubemapTexture
- All Implemented Interfaces:
VeilPreloadedTexture
,AutoCloseable
A cubemap texture type that loads from 2D textures.
- Since:
- 3.1.0
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final net.minecraft.resources.ResourceLocation
Fields inherited from class net.minecraft.client.renderer.texture.AbstractTexture
blur, id, mipmap, NOT_ASSIGNED
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected SimpleCubemapTexture.TextureImage
getTextureImage
(net.minecraft.server.packs.resources.ResourceManager resourceManager) void
load
(@NotNull net.minecraft.server.packs.resources.ResourceManager resourceManager) preload
(net.minecraft.server.packs.resources.ResourceManager resourceManager, Executor backgroundExecutor) void
reset
(@NotNull net.minecraft.client.renderer.texture.TextureManager textureManager, @NotNull net.minecraft.server.packs.resources.ResourceManager resourceManager, @NotNull net.minecraft.resources.ResourceLocation location, @NotNull Executor gameExecutor) Methods inherited from class foundry.veil.api.client.render.texture.CubemapTexture
bind, getGlFace, getId, setFilter
Methods inherited from class net.minecraft.client.renderer.texture.AbstractTexture
close, releaseId
-
Field Details
-
location
protected final net.minecraft.resources.ResourceLocation location
-
-
Constructor Details
-
SimpleCubemapTexture
public SimpleCubemapTexture(net.minecraft.resources.ResourceLocation location)
-
-
Method Details
-
preload
public CompletableFuture<?> preload(net.minecraft.server.packs.resources.ResourceManager resourceManager, Executor backgroundExecutor) - Specified by:
preload
in interfaceVeilPreloadedTexture
-
load
public void load(@NotNull @NotNull net.minecraft.server.packs.resources.ResourceManager resourceManager) throws IOException - Specified by:
load
in classnet.minecraft.client.renderer.texture.AbstractTexture
- Throws:
IOException
-
reset
public void reset(@NotNull @NotNull net.minecraft.client.renderer.texture.TextureManager textureManager, @NotNull @NotNull net.minecraft.server.packs.resources.ResourceManager resourceManager, @NotNull @NotNull net.minecraft.resources.ResourceLocation location, @NotNull @NotNull Executor gameExecutor) - Overrides:
reset
in classnet.minecraft.client.renderer.texture.AbstractTexture
-
getTextureImage
protected SimpleCubemapTexture.TextureImage getTextureImage(net.minecraft.server.packs.resources.ResourceManager resourceManager)
-