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 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 |
func_217789_a(int p_217789_1_,
int p_217789_2_,
int p_217789_3_,
int p_217789_4_) |
void |
generateMipmaps(int level) |
int |
getColor(int frameIndex,
int levelIn,
int xIn,
int yIn) |
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() |
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, wait
getDependencies, hasCustomLoader, load
protected final int width
protected final int height
protected NativeImage[] frames
@Nullable protected int[] framesX
@Nullable protected int[] framesY
protected NativeImage[] interpolatedFrameData
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 func_217789_a(int p_217789_1_, int p_217789_2_, int p_217789_3_, int p_217789_4_)
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.IOException
public void generateMipmaps(int level)
public void clearFramesTextureData()
public boolean hasAnimationMetadata()
public java.lang.String toString()
toString
in class java.lang.Object
public int getColor(int frameIndex, int levelIn, int xIn, int yIn)
public boolean isPixelTransparent(int frameIndex, int pixelX, int pixelY)
public void uploadMipmaps()
public int getPixelRGBA(int frameIndex, int x, int y)