public class TextureAtlasSprite extends java.lang.Object implements IIcon
Modifier and Type | Field and Description |
---|---|
protected int |
frameCounter |
protected java.util.List |
framesTextureData |
protected int |
height |
protected int |
originX |
protected int |
originY |
protected boolean |
rotated |
protected int |
tickCounter |
protected int |
width |
Modifier | Constructor and Description |
---|---|
protected |
TextureAtlasSprite(java.lang.String p_i1282_1_) |
Modifier and Type | Method and Description |
---|---|
void |
clearFramesTextureData() |
void |
copyFrom(TextureAtlasSprite p_94217_1_) |
void |
generateMipmaps(int p_147963_1_) |
int |
getFrameCount() |
int[][] |
getFrameTextureData(int p_147965_1_) |
int |
getIconHeight() |
java.lang.String |
getIconName() |
int |
getIconWidth() |
float |
getInterpolatedU(double p_94214_1_) |
float |
getInterpolatedV(double p_94207_1_) |
float |
getMaxU() |
float |
getMaxV() |
float |
getMinU() |
float |
getMinV() |
int |
getOriginX() |
int |
getOriginY() |
boolean |
hasAnimationMetadata() |
void |
initSprite(int p_110971_1_,
int p_110971_2_,
int p_110971_3_,
int p_110971_4_,
boolean p_110971_5_) |
void |
loadSprite(java.awt.image.BufferedImage[] p_147964_1_,
AnimationMetadataSection p_147964_2_,
boolean p_147964_3_) |
void |
setFramesTextureData(java.util.List p_110968_1_) |
void |
setIconHeight(int p_110969_1_) |
void |
setIconWidth(int p_110966_1_) |
java.lang.String |
toString() |
void |
updateAnimation() |
protected java.util.List framesTextureData
protected boolean rotated
protected int originX
protected int originY
protected int width
protected int height
protected int frameCounter
protected int tickCounter
public void initSprite(int p_110971_1_, int p_110971_2_, int p_110971_3_, int p_110971_4_, boolean p_110971_5_)
public void copyFrom(TextureAtlasSprite p_94217_1_)
public int getOriginX()
public int getOriginY()
public int getIconWidth()
getIconWidth
in interface IIcon
public int getIconHeight()
getIconHeight
in interface IIcon
public float getInterpolatedU(double p_94214_1_)
getInterpolatedU
in interface IIcon
public float getInterpolatedV(double p_94207_1_)
getInterpolatedV
in interface IIcon
public java.lang.String getIconName()
getIconName
in interface IIcon
public void updateAnimation()
public int[][] getFrameTextureData(int p_147965_1_)
public int getFrameCount()
public void setIconWidth(int p_110966_1_)
public void setIconHeight(int p_110969_1_)
public void loadSprite(java.awt.image.BufferedImage[] p_147964_1_, AnimationMetadataSection p_147964_2_, boolean p_147964_3_)
public void generateMipmaps(int p_147963_1_)
public void clearFramesTextureData()
public boolean hasAnimationMetadata()
public void setFramesTextureData(java.util.List p_110968_1_)
public java.lang.String toString()
toString
in class java.lang.Object