Class UnitTextureAtlasSprite
java.lang.Object
net.minecraft.client.renderer.texture.TextureAtlasSprite
net.minecraftforge.client.textures.UnitTextureAtlasSprite
- All Implemented Interfaces:
AutoCloseable
A helper sprite with UVs spanning the entire texture.
Useful for baking quads that won't be used with an atlas.
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.client.renderer.texture.TextureAtlasSprite
TextureAtlasSprite.Info
-
Field Summary
Modifier and TypeFieldDescriptionstatic final UnitTextureAtlasSprite
static final ResourceLocation
Fields inherited from class net.minecraft.client.renderer.texture.TextureAtlasSprite
mainImage
-
Constructor Summary
-
Method Summary
Methods inherited from class net.minecraft.client.renderer.texture.TextureAtlasSprite
atlas, close, getAnimationTicker, getFrameCount, getHeight, getName, getPixelRGBA, getU0, getU1, getUniqueFrames, getUOffset, getV0, getV1, getVOffset, getWidth, getX, getY, isTransparent, toString, uploadFirstFrame, uvShrinkRatio, wrap
-
Field Details
-
LOCATION
-
INSTANCE
-
-
Constructor Details
-
UnitTextureAtlasSprite
private UnitTextureAtlasSprite()
-
-
Method Details
-
getU
public float getU(double u) - Overrides:
getU
in classTextureAtlasSprite
-
getV
public float getV(double v) - Overrides:
getV
in classTextureAtlasSprite
-