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

public class SimpleCubemapTexture extends CubemapTexture implements VeilPreloadedTexture
A cubemap texture type that loads from 2D textures.
Since:
3.1.0
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    protected static class 
     
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected final net.minecraft.resources.ResourceLocation
     

    Fields inherited from class net.minecraft.client.renderer.texture.AbstractTexture

    blur, id, mipmap, NOT_ASSIGNED
  • Constructor Summary

    Constructors
    Constructor
    Description
    SimpleCubemapTexture(net.minecraft.resources.ResourceLocation location)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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 interface VeilPreloadedTexture
    • load

      public void load(@NotNull @NotNull net.minecraft.server.packs.resources.ResourceManager resourceManager) throws IOException
      Specified by:
      load in class net.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 class net.minecraft.client.renderer.texture.AbstractTexture
    • getTextureImage

      protected SimpleCubemapTexture.TextureImage getTextureImage(net.minecraft.server.packs.resources.ResourceManager resourceManager)