Class CubemapTexture

java.lang.Object
net.minecraft.client.renderer.texture.AbstractTexture
foundry.veil.api.client.render.texture.CubemapTexture
All Implemented Interfaces:
AutoCloseable
Direct Known Subclasses:
DynamicCubemapTexture

public abstract class CubemapTexture extends net.minecraft.client.renderer.texture.AbstractTexture
AbstractTexture implementation for using a cubemap texture.
  • Field Summary

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

    blur, id, mipmap, NOT_ASSIGNED
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
    static int
    getGlFace(net.minecraft.core.Direction direction)
    Converts the Direction value to the correct GL cubemap enum.
    void
    setFilter(boolean blur, boolean mipmap)
     

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

    close, getId, load, releaseId, reset

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • CubemapTexture

      public CubemapTexture()
  • Method Details

    • getGlFace

      public static int getGlFace(net.minecraft.core.Direction direction)
      Converts the Direction value to the correct GL cubemap enum.
      Parameters:
      direction - The direction to convert
      Returns:
      The OpenGL enum
    • setFilter

      public void setFilter(boolean blur, boolean mipmap)
      Overrides:
      setFilter in class net.minecraft.client.renderer.texture.AbstractTexture
    • bind

      public void bind()
      Overrides:
      bind in class net.minecraft.client.renderer.texture.AbstractTexture