Class SimpleArrayTexture
java.lang.Object
net.minecraft.client.renderer.texture.AbstractTexture
foundry.veil.api.client.render.texture.ArrayTexture
foundry.veil.api.client.render.texture.SimpleArrayTexture
- All Implemented Interfaces:
VeilPreloadedTexture,AutoCloseable
-
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 SimpleArrayTexture.TextureImage[]getTextureImages(net.minecraft.server.packs.resources.ResourceManager resourceManager) voidload(@NotNull net.minecraft.server.packs.resources.ResourceManager resourceManager) preload(net.minecraft.server.packs.resources.ResourceManager resourceManager, Executor backgroundExecutor) voidreset(@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.ArrayTexture
bind, getId, init, setFilter, uploadMethods inherited from class net.minecraft.client.renderer.texture.AbstractTexture
close, releaseId
-
Field Details
-
locations
protected final net.minecraft.resources.ResourceLocation[] locations
-
-
Constructor Details
-
SimpleArrayTexture
public SimpleArrayTexture(net.minecraft.resources.ResourceLocation... locations)
-
-
Method Details
-
preload
public CompletableFuture<?> preload(net.minecraft.server.packs.resources.ResourceManager resourceManager, Executor backgroundExecutor) - Specified by:
preloadin interfaceVeilPreloadedTexture
-
load
public void load(@NotNull @NotNull net.minecraft.server.packs.resources.ResourceManager resourceManager) throws IOException - Specified by:
loadin 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:
resetin classnet.minecraft.client.renderer.texture.AbstractTexture
-
getTextureImages
protected SimpleArrayTexture.TextureImage[] getTextureImages(net.minecraft.server.packs.resources.ResourceManager resourceManager)
-