Class TextureAtlasSprite

java.lang.Object
net.minecraft.client.renderer.texture.TextureAtlasSprite
Direct Known Subclasses:
UnitTextureAtlasSprite

public class TextureAtlasSprite extends Object
  • Field Details

    • atlasLocation

      private final ResourceLocation atlasLocation
    • contents

      private final SpriteContents contents
    • x

      final int x
    • y

      final int y
    • u0

      private final float u0
    • u1

      private final float u1
    • v0

      private final float v0
    • v1

      private final float v1
  • Constructor Details

    • TextureAtlasSprite

      protected TextureAtlasSprite(ResourceLocation pAtlasLocation, SpriteContents pContents, int pOriginX, int pOriginY, int pX, int pY)
  • Method Details

    • getX

      public int getX()
    • getY

      public int getY()
    • getU0

      public float getU0()
    • getU1

      public float getU1()
    • contents

      public SpriteContents contents()
    • createTicker

      @Nullable public TextureAtlasSprite.Ticker createTicker()
    • getU

      public float getU(float pU)
    • getUOffset

      public float getUOffset(float pOffset)
    • getV0

      public float getV0()
    • getV1

      public float getV1()
    • getV

      public float getV(float pV)
    • getVOffset

      public float getVOffset(float pOffset)
    • atlasLocation

      public ResourceLocation atlasLocation()
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • uploadFirstFrame

      public void uploadFirstFrame()
    • atlasSize

      private float atlasSize()
    • uvShrinkRatio

      public float uvShrinkRatio()
    • wrap

      public VertexConsumer wrap(VertexConsumer pConsumer)
    • getPixelRGBA

      public int getPixelRGBA(int frameIndex, int x, int y)