Package net.minecraft.client.font
Record Class BitmapFont.BitmapFontGlyph
java.lang.Object
java.lang.Record
net.minecraft.client.font.BitmapFont.BitmapFontGlyph
- Record Components:
- scaleFactor-
- image-
- x-
- y-
- width-
- height-
- advance-
- ascent-
- All Implemented Interfaces:
- Glyph
- Enclosing class:
- BitmapFont
@Environment(CLIENT)
private static record BitmapFont.BitmapFontGlyph(float scaleFactor, NativeImage image, int x, int y, int width, int height, int advance, int ascent)
extends Record
implements Glyph
- Mappings:
- Namespace - Name - official - erw$b- intermediary - net/minecraft/class_386$class_388- named - net/minecraft/client/font/BitmapFont$BitmapFontGlyph- official - a- intermediary - comp_603- named - scaleFactor- official - b- intermediary - comp_604- named - image- official - c- intermediary - comp_605- named - x- official - d- intermediary - comp_606- named - y- official - e- intermediary - comp_607- named - width- official - f- intermediary - comp_608- named - height- official - g- intermediary - comp_609- named - advance- official - h- intermediary - comp_610- named - ascent
- 
Nested Class SummaryNested classes/interfaces inherited from interface net.minecraft.client.font.GlyphGlyph.EmptyGlyph
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate final intThe field for theadvancerecord component.private final intThe field for theascentrecord component.private final intThe field for theheightrecord component.private final NativeImageThe field for theimagerecord component.private final floatThe field for thescaleFactorrecord component.private final intThe field for thewidthrecord component.private final intThe field for thexrecord component.private final intThe field for theyrecord component.
- 
Constructor SummaryConstructorsConstructorDescriptionBitmapFontGlyph(float scaleFactor, NativeImage image, int x, int y, int width, int height, int advance, int ascent) Creates an instance of aBitmapFontGlyphrecord class.
- 
Method SummaryModifier and TypeMethodDescriptionintadvance()Returns the value of theadvancerecord component.intascent()Returns the value of theascentrecord component.bake(Function<RenderableGlyph, GlyphRenderer> glyphRendererGetter) final booleanIndicates whether some other object is "equal to" this one.floatfinal inthashCode()Returns a hash code value for this object.intheight()Returns the value of theheightrecord component.image()Returns the value of theimagerecord component.floatReturns the value of thescaleFactorrecord component.final StringtoString()Returns a string representation of this record class.intwidth()Returns the value of thewidthrecord component.intx()Returns the value of thexrecord component.inty()Returns the value of theyrecord component.Methods inherited from class java.lang.Objectclone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraft.client.font.GlyphgetAdvance, getBoldOffset, getShadowOffset
- 
Field Details- 
scaleFactorprivate final float scaleFactorThe field for thescaleFactorrecord component.
- 
imageThe field for theimagerecord component.
- 
xprivate final int xThe field for thexrecord component.
- 
yprivate final int yThe field for theyrecord component.
- 
widthprivate final int widthThe field for thewidthrecord component.
- 
heightprivate final int heightThe field for theheightrecord component.
- 
advanceprivate final int advanceThe field for theadvancerecord component.
- 
ascentprivate final int ascentThe field for theascentrecord component.
 
- 
- 
Constructor Details- 
BitmapFontGlyphBitmapFontGlyph(float scaleFactor, NativeImage image, int x, int y, int width, int height, int advance, int ascent) Creates an instance of aBitmapFontGlyphrecord class.- Parameters:
- scaleFactor- the value for the- scaleFactorrecord component
- image- the value for the- imagerecord component
- x- the value for the- xrecord component
- y- the value for the- yrecord component
- width- the value for the- widthrecord component
- height- the value for the- heightrecord component
- advance- the value for the- advancerecord component
- ascent- the value for the- ascentrecord component
 
 
- 
- 
Method Details- 
getAdvancepublic float getAdvance()- Specified by:
- getAdvancein interface- Glyph
 
- 
bake- Specified by:
- bakein interface- Glyph
- Mappings:
- Namespace - Name - Mixin selector - official - bake- Legl;bake(Ljava/util/function/Function;)Lerr;- intermediary - bake- Lnet/minecraft/class_379;bake(Ljava/util/function/Function;)Lnet/minecraft/class_382;- named - bake- Lnet/minecraft/client/font/Glyph;bake(Ljava/util/function/Function;)Lnet/minecraft/client/font/GlyphRenderer;
 
- 
toStringReturns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
- 
hashCodepublic final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
- 
equalsIndicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='.
- 
scaleFactorpublic float scaleFactor()Returns the value of thescaleFactorrecord component.- Returns:
- the value of the scaleFactorrecord component
 
- 
imageReturns the value of theimagerecord component.- Returns:
- the value of the imagerecord component
 
- 
xpublic int x()Returns the value of thexrecord component.- Returns:
- the value of the xrecord component
 
- 
ypublic int y()Returns the value of theyrecord component.- Returns:
- the value of the yrecord component
 
- 
widthpublic int width()Returns the value of thewidthrecord component.- Returns:
- the value of the widthrecord component
 
- 
heightpublic int height()Returns the value of theheightrecord component.- Returns:
- the value of the heightrecord component
 
- 
advancepublic int advance()Returns the value of theadvancerecord component.- Returns:
- the value of the advancerecord component
 
- 
ascentpublic int ascent()Returns the value of theascentrecord component.- Returns:
- the value of the ascentrecord component
 
 
-