Package com.prupe.mcpatcher.hd
Class BorderedTexture
java.lang.Object
net.minecraft.src.TextureAtlasSprite
com.prupe.mcpatcher.hd.BorderedTexture
- All Implemented Interfaces:
Icon
-
Field Summary
Fields inherited from class net.minecraft.src.TextureAtlasSprite
frameCounter, framesTextureData, height, mipmaps, originX, originY, rotated, tickCounter, width -
Method Summary
Modifier and TypeMethodDescriptionvoidcopyFrom(TextureAtlasSprite stitched) static TextureAtlasSpritefloatgetInterpolatedU(double u) Gets a U coordinate on the icon. 0 returns uMin and 16 returns uMax.floatgetInterpolatedV(double v) Gets a V coordinate on the icon. 0 returns vMin and 16 returns vMax.floatgetMaxU()Returns the maximum U coordinate to use when rendering with this icon.floatgetMaxV()Returns the maximum V coordinate to use when rendering with this icon.floatgetMinU()Returns the minimum U coordinate to use when rendering with this icon.floatgetMinV()Returns the minimum V coordinate to use when rendering with this icon.voidinitSprite(int tilesheetWidth, int tilesheetHeight, int x0, int y0, boolean flipped) Methods inherited from class net.minecraft.src.TextureAtlasSprite
clearFramesTextureData, getAnimationMetadata, getFrameCount, getFrameTextureData, getIconHeight, getIconName, getIconWidth, getOriginX, getOriginY, hasAnimationMetadata, isProcedurallyAnimated, loadSprite, setFramesTextureData, setIconHeight, setIconWidth, toString, updateAnimation
-
Method Details
-
create
-
initSprite
public void initSprite(int tilesheetWidth, int tilesheetHeight, int x0, int y0, boolean flipped) - Overrides:
initSpritein classTextureAtlasSprite
-
getMinU
public float getMinU()Description copied from class:TextureAtlasSpriteReturns the minimum U coordinate to use when rendering with this icon.- Specified by:
getMinUin interfaceIcon- Overrides:
getMinUin classTextureAtlasSprite
-
getMaxU
public float getMaxU()Description copied from class:TextureAtlasSpriteReturns the maximum U coordinate to use when rendering with this icon.- Specified by:
getMaxUin interfaceIcon- Overrides:
getMaxUin classTextureAtlasSprite
-
getInterpolatedU
public float getInterpolatedU(double u) Description copied from class:TextureAtlasSpriteGets a U coordinate on the icon. 0 returns uMin and 16 returns uMax. Other arguments return in-between values.- Specified by:
getInterpolatedUin interfaceIcon- Overrides:
getInterpolatedUin classTextureAtlasSprite
-
getMinV
public float getMinV()Description copied from class:TextureAtlasSpriteReturns the minimum V coordinate to use when rendering with this icon.- Specified by:
getMinVin interfaceIcon- Overrides:
getMinVin classTextureAtlasSprite
-
getMaxV
public float getMaxV()Description copied from class:TextureAtlasSpriteReturns the maximum V coordinate to use when rendering with this icon.- Specified by:
getMaxVin interfaceIcon- Overrides:
getMaxVin classTextureAtlasSprite
-
getInterpolatedV
public float getInterpolatedV(double v) Description copied from class:TextureAtlasSpriteGets a V coordinate on the icon. 0 returns vMin and 16 returns vMax. Other arguments return in-between values.- Specified by:
getInterpolatedVin interfaceIcon- Overrides:
getInterpolatedVin classTextureAtlasSprite
-
copyFrom
- Overrides:
copyFromin classTextureAtlasSprite
-