Class BitmapProvider.Glyph
java.lang.Object
net.minecraft.client.gui.font.providers.BitmapProvider.Glyph
- Enclosing class:
- BitmapProvider
-
Field Summary
-
Constructor Summary
ConstructorDescriptionGlyph(float p_95372_, NativeImage p_95373_, int p_95374_, int p_95375_, int p_95376_, int p_95377_, int p_95378_, int p_95379_)
-
Method Summary
Modifier and TypeMethodDescriptionfloat
float
float
int
int
boolean
void
upload(int p_95391_, int p_95392_)
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.mojang.blaze3d.font.GlyphInfo
getAdvance, getBearingX, getBoldOffset, getShadowOffset
-
Field Details
-
scale
private final float scale -
image
-
offsetX
private final int offsetX -
offsetY
private final int offsetY -
width
private final int width -
height
private final int height -
advance
private final int advance -
ascent
private final int ascent
-
-
Constructor Details
-
Glyph
Glyph(float p_95372_, NativeImage p_95373_, int p_95374_, int p_95375_, int p_95376_, int p_95377_, int p_95378_, int p_95379_)
-
-
Method Details
-
getOversample
public float getOversample()- Specified by:
getOversample
in interfaceRawGlyph
-
getPixelWidth
public int getPixelWidth()- Specified by:
getPixelWidth
in interfaceRawGlyph
-
getPixelHeight
public int getPixelHeight()- Specified by:
getPixelHeight
in interfaceRawGlyph
-
getAdvance
public float getAdvance()- Specified by:
getAdvance
in interfaceGlyphInfo
-
getBearingY
public float getBearingY()- Specified by:
getBearingY
in interfaceGlyphInfo
- Specified by:
getBearingY
in interfaceRawGlyph
-
upload
public void upload(int p_95391_, int p_95392_) -
isColored
public boolean isColored()
-