Package net.minecraft.client.font
Class UnicodeTextureFont.UnicodeTextureGlyph
java.lang.Object
net.minecraft.client.font.UnicodeTextureFont.UnicodeTextureGlyph
- All Implemented Interfaces:
Glyph,RenderableGlyph
- Enclosing class:
- UnicodeTextureFont
@Environment(CLIENT) static class UnicodeTextureFont.UnicodeTextureGlyph extends Object implements RenderableGlyph
-
Field Summary
Fields Modifier and Type Field Description private intheightprivate NativeImageimageprivate intunpackSkipPixelsprivate intunpackSkipRowsprivate intwidth -
Constructor Summary
Constructors Modifier Constructor Description privateUnicodeTextureGlyph(int x, int y, int width, int height, NativeImage image) -
Method Summary
Modifier and Type Method Description floatgetAdvance()floatgetBoldOffset()intgetHeight()floatgetOversample()floatgetShadowOffset()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
-
Field Details
-
width
private final int width -
height
private final int height -
unpackSkipPixels
private final int unpackSkipPixels -
unpackSkipRows
private final int unpackSkipRows -
image
-
-
Constructor Details
-
UnicodeTextureGlyph
-
-
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
-
upload
public void upload(int x, int y)- Specified by:
uploadin interfaceRenderableGlyph
-
hasColor
public boolean hasColor()- Specified by:
hasColorin interfaceRenderableGlyph
-
getShadowOffset
public float getShadowOffset()- Specified by:
getShadowOffsetin interfaceGlyph
-
getBoldOffset
public float getBoldOffset()- Specified by:
getBoldOffsetin interfaceGlyph
-