public class ProxyIcon extends Icon
| Modifier and Type | Field and Description |
|---|---|
protected net.minecraft.client.renderer.texture.TextureAtlasSprite |
proxy |
BLOCK_TEXTURE_HEIGHT, BLOCK_TEXTURE_WIDTH, dependants, flippedU, flippedV, missing, registeredIcons, rotation, sheetHeight, sheetWidth, vanillaIcons| Constructor and Description |
|---|
ProxyIcon(java.lang.String name) |
ProxyIcon(net.minecraft.client.renderer.texture.TextureAtlasSprite proxy) |
| Modifier and Type | Method and Description |
|---|---|
void |
clearFramesTextureData() |
void |
copyFrom(net.minecraft.client.renderer.texture.TextureAtlasSprite atlasSprite)
|
void |
generateMipmaps(int level) |
int |
getFrameCount() |
int[][] |
getFrameTextureData(int index) |
net.minecraft.client.renderer.texture.TextureAtlasSprite |
getIcon() |
int |
getIconHeight() |
int |
getIconWidth() |
float |
getInterpolatedU(double u) |
float |
getInterpolatedV(double v) |
float |
getMaxU()
Gets the max u.
|
float |
getMaxV()
Gets the max v.
|
float |
getMinU()
Gets the min u.
|
float |
getMinV()
Gets the min v.
|
int |
getOriginX() |
int |
getOriginY() |
boolean |
hasAnimationMetadata() |
void |
initSprite(int inX,
int inY,
int originInX,
int originInY,
boolean rotatedIn)
Called when the part represented by this
Icon is stiched to the texture. |
void |
loadSprite(net.minecraft.client.renderer.texture.PngSizeInfo sizeInfo,
boolean animated) |
void |
register(net.minecraft.client.renderer.texture.TextureMap map) |
void |
setFramesTextureData(java.util.List<int[][]> newFramesTextureData) |
void |
setIconHeight(int newHeight) |
void |
setIconWidth(int newWidth) |
protected void |
setProxy(net.minecraft.client.renderer.texture.TextureAtlasSprite proxy) |
java.lang.String |
toString() |
void |
updateAnimation() |
clip, clip, copy, flip, from, from, from, from, from, getRegistered, getRotation, initIcon, isFlippedU, isFlippedV, isRotated, offset, registerIcons, setRotation, setSize, setUVspublic ProxyIcon(java.lang.String name)
public ProxyIcon(net.minecraft.client.renderer.texture.TextureAtlasSprite proxy)
public net.minecraft.client.renderer.texture.TextureAtlasSprite getIcon()
protected void setProxy(net.minecraft.client.renderer.texture.TextureAtlasSprite proxy)
public void register(net.minecraft.client.renderer.texture.TextureMap map)
public void initSprite(int inX,
int inY,
int originInX,
int originInY,
boolean rotatedIn)
IconIcon is stiched to the texture. Sets most of the icon fields.initSprite in class IconinX - the widthinY - the heightoriginInX - the xoriginInY - the yrotatedIn - the rotatedpublic void copyFrom(net.minecraft.client.renderer.texture.TextureAtlasSprite atlasSprite)
Iconpublic int getOriginX()
getOriginX in class net.minecraft.client.renderer.texture.TextureAtlasSpritepublic int getOriginY()
getOriginY in class net.minecraft.client.renderer.texture.TextureAtlasSpritepublic int getIconWidth()
getIconWidth in class net.minecraft.client.renderer.texture.TextureAtlasSpritepublic int getIconHeight()
getIconHeight in class net.minecraft.client.renderer.texture.TextureAtlasSpritepublic float getMinU()
Iconpublic float getMaxU()
Iconpublic float getInterpolatedU(double u)
getInterpolatedU in class net.minecraft.client.renderer.texture.TextureAtlasSpritepublic float getMinV()
Iconpublic float getMaxV()
Iconpublic float getInterpolatedV(double v)
getInterpolatedV in class net.minecraft.client.renderer.texture.TextureAtlasSpritepublic void updateAnimation()
updateAnimation in class net.minecraft.client.renderer.texture.TextureAtlasSpritepublic int[][] getFrameTextureData(int index)
getFrameTextureData in class net.minecraft.client.renderer.texture.TextureAtlasSpritepublic int getFrameCount()
getFrameCount in class net.minecraft.client.renderer.texture.TextureAtlasSpritepublic void setIconWidth(int newWidth)
setIconWidth in class net.minecraft.client.renderer.texture.TextureAtlasSpritepublic void setIconHeight(int newHeight)
setIconHeight in class net.minecraft.client.renderer.texture.TextureAtlasSpritepublic void loadSprite(net.minecraft.client.renderer.texture.PngSizeInfo sizeInfo,
boolean animated)
throws java.io.IOException
loadSprite in class net.minecraft.client.renderer.texture.TextureAtlasSpritejava.io.IOExceptionpublic void generateMipmaps(int level)
generateMipmaps in class net.minecraft.client.renderer.texture.TextureAtlasSpritepublic void clearFramesTextureData()
clearFramesTextureData in class net.minecraft.client.renderer.texture.TextureAtlasSpritepublic boolean hasAnimationMetadata()
hasAnimationMetadata in class net.minecraft.client.renderer.texture.TextureAtlasSpritepublic void setFramesTextureData(java.util.List<int[][]> newFramesTextureData)
setFramesTextureData in class net.minecraft.client.renderer.texture.TextureAtlasSpritepublic java.lang.String toString()
toString in class net.minecraft.client.renderer.texture.TextureAtlasSprite