Package net.minecraft.client.font
Class TextureFont.TextureFontGlyph
java.lang.Object
net.minecraft.client.font.TextureFont.TextureFontGlyph
- All Implemented Interfaces:
Glyph,RenderableGlyph
- Enclosing class:
- TextureFont
@Environment(CLIENT) static final class TextureFont.TextureFontGlyph extends Object implements RenderableGlyph
-
Field Summary
Fields Modifier and Type Field Description private intadvanceprivate intascentprivate intheightprivate NativeImageimageprivate floatscaleFactorprivate intwidthprivate intxprivate inty -
Constructor Summary
Constructors Modifier Constructor Description privateTextureFontGlyph(float scaleFactor, NativeImage image, int x, int y, int width, int height, int advance, int ascent) -
Method Summary
Modifier and Type Method Description floatgetAdvance()floatgetAscent()intgetHeight()floatgetOversample()intgetWidth()booleanhasColor()voidupload(int x, int y)Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.client.font.Glyph
getAdvance, getBearingX, getBoldOffset, getShadowOffsetMethods inherited from interface net.minecraft.client.font.RenderableGlyph
getXMax, getXMin, getYMax, getYMin
-
Field Details
-
Constructor Details
-
TextureFontGlyph
private TextureFontGlyph(float scaleFactor, NativeImage image, int x, int y, int width, int height, int advance, int ascent)
-
-
Method Details
-
getOversample
public float getOversample()- Specified by:
getOversamplein interfaceRenderableGlyph
-
getWidth
public int getWidth()- Specified by:
getWidthin interfaceRenderableGlyph
-
getHeight
public int getHeight()- Specified by:
getHeightin interfaceRenderableGlyph
-
getAdvance
public float getAdvance()- Specified by:
getAdvancein interfaceGlyph
-
getAscent
public float getAscent()- Specified by:
getAscentin interfaceRenderableGlyph
-
upload
public void upload(int x, int y)- Specified by:
uploadin interfaceRenderableGlyph
-
hasColor
public boolean hasColor()- Specified by:
hasColorin interfaceRenderableGlyph
-