public class TextureAtlasSprite extends java.lang.Object implements IForgeTextureAtlasSprite
| Modifier and Type | Field and Description |
|---|---|
protected int |
frameCounter |
protected NativeImage[] |
frames |
protected int[] |
framesX |
protected int[] |
framesY |
protected int |
height |
protected NativeImage[] |
interpolatedFrameData |
protected boolean |
rotated |
protected int |
tickCounter |
protected int |
width |
protected int |
x |
protected int |
y |
| Modifier | Constructor and Description |
|---|---|
protected |
TextureAtlasSprite(ResourceLocation locationIn,
int widthIn,
int heightIn) |
protected |
TextureAtlasSprite(ResourceLocation locationIn,
PngSizeInfo sizeIn,
AnimationMetadataSection animationMetadataIn) |
| Modifier and Type | Method and Description |
|---|---|
void |
clearFramesTextureData() |
void |
generateMipmaps(int level) |
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 |
getUnInterpolatedU(float u) |
float |
getUnInterpolatedV(float v) |
int |
getWidth() |
boolean |
hasAnimationMetadata() |
void |
initSprite(int inX,
int inY,
int originInX,
int originInY,
boolean rotatedIn) |
boolean |
isPixelTransparent(int frameIndex,
int pixelX,
int pixelY) |
void |
loadSpriteFrames(IResource resource,
int count) |
java.lang.String |
toString() |
void |
updateAnimation() |
void |
uploadMipmaps() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetDependencies, hasCustomLoader, loadprotected final int width
protected final int height
protected NativeImage[] frames
@Nullable protected int[] framesX
@Nullable protected int[] framesY
protected NativeImage[] interpolatedFrameData
protected boolean rotated
protected int x
protected int y
protected int frameCounter
protected int tickCounter
protected TextureAtlasSprite(ResourceLocation locationIn, int widthIn, int heightIn)
protected TextureAtlasSprite(ResourceLocation locationIn, PngSizeInfo sizeIn, @Nullable AnimationMetadataSection animationMetadataIn)
public void initSprite(int inX,
int inY,
int originInX,
int originInY,
boolean rotatedIn)
public int getWidth()
public int getHeight()
public float getMinU()
public float getMaxU()
public float getInterpolatedU(double u)
public float getUnInterpolatedU(float u)
public float getMinV()
public float getMaxV()
public float getInterpolatedV(double v)
public float getUnInterpolatedV(float v)
public ResourceLocation getName()
public void updateAnimation()
public int getFrameCount()
public void loadSpriteFrames(IResource resource, int count) throws java.io.IOException
java.io.IOExceptionpublic void generateMipmaps(int level)
public void clearFramesTextureData()
public boolean hasAnimationMetadata()
public java.lang.String toString()
toString in class java.lang.Objectpublic boolean isPixelTransparent(int frameIndex,
int pixelX,
int pixelY)
public void uploadMipmaps()
public int getPixelRGBA(int frameIndex,
int x,
int y)