Modifier and Type | Field and Description |
---|---|
net.minecraft.client.renderer.texture.TextureAtlasSprite |
sprite |
Constructor and Description |
---|
SpriteAtlas(net.minecraft.client.renderer.texture.TextureAtlasSprite sprite) |
Modifier and Type | Method and Description |
---|---|
void |
bindTexture()
Binds this sprites backing texture so that this sprite will be referenced when you use the results of
ISprite.getInterpU(double) and ISprite.getInterpV(double) |
double |
getInterpU(double u) |
double |
getInterpV(double v) |
public SpriteAtlas(net.minecraft.client.renderer.texture.TextureAtlasSprite sprite)
public void bindTexture()
ISprite
ISprite.getInterpU(double)
and ISprite.getInterpV(double)
bindTexture
in interface ISprite
public double getInterpU(double u)
getInterpU
in interface ISprite
u
- A value between 0 and 1public double getInterpV(double v)
getInterpV
in interface ISprite
v
- A value between 0 and 1