public class GuiIcon extends Icon
| Modifier and Type | Field and Description |
|---|---|
protected Icon[] |
icons |
BLOCK_TEXTURE_HEIGHT, BLOCK_TEXTURE_WIDTH, dependants, flippedU, flippedV, missing, rotation, sheetHeight, sheetWidth| Constructor and Description |
|---|
GuiIcon(Icon icon) |
GuiIcon(Icon[] icons) |
| Modifier and Type | Method and Description |
|---|---|
Icon |
clip(float offsetXFactor,
float offsetYFactor,
float widthFactor,
float heightFactor)
Clips this
Icon. |
Icon |
clip(int offsetX,
int offsetY,
int width,
int height)
Clips this
Icon. |
Icon |
flip(boolean horizontal,
boolean vertical)
Sets this
Icon to be flipped. |
Icon |
getIcon(int index) |
void |
setRotation(int rotation)
Sets the rotation for this
Icon. |
java.lang.String |
toString() |
addDependant, copy, copyFrom, from, from, from, from, getMaxU, getMaxV, getMinU, getMinV, getRegistered, getRotation, initIcon, initSprite, isFlippedU, isFlippedV, isRotated, offset, registerIcons, setSize, setUVsclearFramesTextureData, generateMipmaps, getFrameCount, getFrameTextureData, getIconHeight, getIconName, getIconWidth, getInterpolatedU, getInterpolatedV, getOriginX, getOriginY, getUnInterpolatedU, getUnInterpolatedV, hasAnimationMetadata, hasCustomLoader, load, loadSprite, loadSpriteFrames, makeAtlasSprite, setFramesTextureData, setIconHeight, setIconWidth, updateAnimationprotected Icon[] icons
public Icon getIcon(int index)
public Icon flip(boolean horizontal, boolean vertical)
IconIcon to be flipped.public void setRotation(int rotation)
IconIcon. The icon will be rotated rotation x 90 degrees clockwise.setRotation in class Iconrotation - the rotationpublic Icon clip(float offsetXFactor, float offsetYFactor, float widthFactor, float heightFactor)
IconIcon. offsetXFactor, offsetYFactor, widthFactor and heightFactor are values from zero
to one.public Icon clip(int offsetX, int offsetY, int width, int height)
IconIcon. offsetX, offsetY, width and height are specified in pixels.public java.lang.String toString()
toString in class net.minecraft.client.renderer.texture.TextureAtlasSprite