Record Class BitmapProvider.Glyph
java.lang.Object
java.lang.Record
net.minecraft.client.gui.font.providers.BitmapProvider.Glyph
- All Implemented Interfaces:
- GlyphInfo
- Enclosing class:
- BitmapProvider
static record BitmapProvider.Glyph(float scale, NativeImage image, int offsetX, int offsetY, int width, int height, int advance, int ascent)
extends Record
implements GlyphInfo
- 
Nested Class SummaryNested classes/interfaces inherited from interface com.mojang.blaze3d.font.GlyphInfoGlyphInfo.SpaceGlyphInfo
- 
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 intThe field for theoffsetXrecord component.private final intThe field for theoffsetYrecord component.private final floatThe field for thescalerecord component.private final intThe field for thewidthrecord component.
- 
Constructor SummaryConstructorsConstructorDescriptionGlyph(float scale, NativeImage image, int offsetX, int offsetY, int width, int height, int advance, int ascent) Creates an instance of aGlyphrecord class.
- 
Method SummaryModifier and TypeMethodDescriptionintadvance()Returns the value of theadvancerecord component.intascent()Returns the value of theascentrecord component.bake(Function<SheetGlyphInfo, BakedGlyph> p_232640_) 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.intoffsetX()Returns the value of theoffsetXrecord component.intoffsetY()Returns the value of theoffsetYrecord component.floatscale()Returns the value of thescalerecord component.final StringtoString()Returns a string representation of this record class.intwidth()Returns the value of thewidthrecord component.Methods inherited from class java.lang.Objectclone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.mojang.blaze3d.font.GlyphInfogetAdvance, getBoldOffset, getShadowOffset
- 
Field Details- 
scaleprivate final float scaleThe field for thescalerecord component.
- 
imageThe field for theimagerecord component.
- 
offsetXprivate final int offsetXThe field for theoffsetXrecord component.
- 
offsetYprivate final int offsetYThe field for theoffsetYrecord 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- 
GlyphGlyph(float scale, NativeImage image, int offsetX, int offsetY, int width, int height, int advance, int ascent) Creates an instance of aGlyphrecord class.- Parameters:
- scale- the value for the- scalerecord component
- image- the value for the- imagerecord component
- offsetX- the value for the- offsetXrecord component
- offsetY- the value for the- offsetYrecord 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- GlyphInfo
 
- 
bake
- 
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 '=='.
- 
scalepublic float scale()Returns the value of thescalerecord component.- Returns:
- the value of the scalerecord component
 
- 
imageReturns the value of theimagerecord component.- Returns:
- the value of the imagerecord component
 
- 
offsetXpublic int offsetX()Returns the value of theoffsetXrecord component.- Returns:
- the value of the offsetXrecord component
 
- 
offsetYpublic int offsetY()Returns the value of theoffsetYrecord component.- Returns:
- the value of the offsetYrecord 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
 
 
-