Class UnitTextureAtlasSprite

java.lang.Object
net.minecraft.client.renderer.texture.TextureAtlasSprite
io.github.vampirestudios.vampirelib.client.textures.UnitTextureAtlasSprite
All Implemented Interfaces:
AutoCloseable

public class UnitTextureAtlasSprite extends net.minecraft.client.renderer.texture.TextureAtlasSprite
A helper sprite with UVs spanning the entire texture.

Useful for baking quads that won't be used with an atlas.

  • Nested Class Summary

    Nested classes/interfaces inherited from class net.minecraft.client.renderer.texture.TextureAtlasSprite

    net.minecraft.client.renderer.texture.TextureAtlasSprite.AnimatedTexture, net.minecraft.client.renderer.texture.TextureAtlasSprite.Info
  • Field Summary

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

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

    mainImage
  • Method Summary

    Modifier and Type
    Method
    Description
    float
    getU(double u)
     
    float
    getV(double v)
     

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

    atlas, close, getAnimationTicker, getHeight, getName, getU0, getU1, getUniqueFrames, getUOffset, getV0, getV1, getVOffset, getWidth, getX, getY, isTransparent, toString, uploadFirstFrame, uvShrinkRatio, wrap

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

    • LOCATION

      public static final net.minecraft.resources.ResourceLocation LOCATION
    • INSTANCE

      public static final UnitTextureAtlasSprite INSTANCE
  • Method Details

    • getU

      public float getU(double u)
      Overrides:
      getU in class net.minecraft.client.renderer.texture.TextureAtlasSprite
    • getV

      public float getV(double v)
      Overrides:
      getV in class net.minecraft.client.renderer.texture.TextureAtlasSprite