public class TextureAtlasSprite extends java.lang.Object implements java.lang.AutoCloseable, IForgeTextureAtlasSprite
| Modifier and Type | Class and Description |
|---|---|
static class |
TextureAtlasSprite.Info |
| Modifier and Type | Field and Description |
|---|---|
protected NativeImage[] |
frames |
| Modifier | Constructor and Description |
|---|---|
protected |
TextureAtlasSprite(AtlasTexture atlasTextureIn,
TextureAtlasSprite.Info spriteInfoIn,
int mipmapLevelsIn,
int atlasWidthIn,
int atlasHeightIn,
int xIn,
int yIn,
NativeImage imageIn) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
AtlasTexture |
getAtlasTexture() |
int |
getFrameCount() |
int |
getHeight() |
float |
getInterpolatedU(double u) |
float |
getInterpolatedV(double v) |
float |
getMaxU() |
float |
getMaxV() |
float |
getMinU() |
float |
getMinV() |
ResourceLocation |
getName() |
int |
getPixelRGBA(int frameIndex,
int x,
int y) |
float |
getUvShrinkRatio() |
int |
getWidth() |
boolean |
hasAnimationMetadata() |
boolean |
isPixelTransparent(int frameIndex,
int pixelX,
int pixelY) |
java.lang.String |
toString() |
void |
updateAnimation() |
void |
uploadMipmaps() |
IVertexBuilder |
wrapBuffer(IVertexBuilder bufferIn) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetDependencies, hasCustomLoader, loadprotected final NativeImage[] frames
protected TextureAtlasSprite(AtlasTexture atlasTextureIn, TextureAtlasSprite.Info spriteInfoIn, int mipmapLevelsIn, int atlasWidthIn, int atlasHeightIn, int xIn, int yIn, NativeImage imageIn)
public int getWidth()
public int getHeight()
public float getMinU()
public float getMaxU()
public float getInterpolatedU(double u)
public float getMinV()
public float getMaxV()
public float getInterpolatedV(double v)
public ResourceLocation getName()
public AtlasTexture getAtlasTexture()
public int getFrameCount()
public void close()
close in interface java.lang.AutoCloseablepublic java.lang.String toString()
toString in class java.lang.Objectpublic boolean isPixelTransparent(int frameIndex,
int pixelX,
int pixelY)
public void uploadMipmaps()
public float getUvShrinkRatio()
public void updateAnimation()
public boolean hasAnimationMetadata()
public IVertexBuilder wrapBuffer(IVertexBuilder bufferIn)
public int getPixelRGBA(int frameIndex,
int x,
int y)