Class UnitTextureAtlasSprite

java.lang.Object
net.minecraft.client.renderer.texture.TextureAtlasSprite
net.neoforged.neoforge.client.textures.UnitTextureAtlasSprite

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.Ticker
  • Field Summary

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

    Constructors
    Modifier
    Constructor
    Description
    private
     
  • Method Summary

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

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

    atlasLocation, contents, createTicker, getPixelRGBA, getU0, getU1, getUOffset, getV0, getV1, getVOffset, getX, getY, 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
  • Constructor Details

    • UnitTextureAtlasSprite

      private UnitTextureAtlasSprite()
  • Method Details

    • getU

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

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