Package net.minecraft.client.font
Class BitmapFont.BitmapFontGlyph
java.lang.Object
net.minecraft.client.font.BitmapFont.BitmapFontGlyph
- All Implemented Interfaces:
Glyph,RenderableGlyph
- Enclosing class:
- BitmapFont
@Environment(CLIENT) static final class BitmapFont.BitmapFontGlyph 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 privateBitmapFontGlyph(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
-
scaleFactor
private final float scaleFactor -
image
-
x
private final int x -
y
private final int y -
width
private final int width -
height
private final int height -
advance
private final int advance -
ascent
private final int ascent
-
-
Constructor Details
-
BitmapFontGlyph
private BitmapFontGlyph(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
-