Record Class UnihexProvider.Glyph
java.lang.Object
java.lang.Record
net.minecraft.client.gui.font.providers.UnihexProvider.Glyph
- All Implemented Interfaces:
- GlyphInfo
- Enclosing class:
- UnihexProvider
static record UnihexProvider.Glyph(UnihexProvider.LineData contents, int left, int right)
extends Record
implements GlyphInfo
- 
Nested Class SummaryNested classes/interfaces inherited from interface com.mojang.blaze3d.font.GlyphInfoGlyphInfo.SpaceGlyphInfo
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate final UnihexProvider.LineDataThe field for thecontentsrecord component.private final intThe field for theleftrecord component.private final intThe field for therightrecord component.
- 
Constructor SummaryConstructorsConstructorDescriptionGlyph(UnihexProvider.LineData contents, int left, int right) Creates an instance of aGlyphrecord class.
- 
Method SummaryModifier and TypeMethodDescriptionbake(Function<SheetGlyphInfo, BakedGlyph> p_285377_) contents()Returns the value of thecontentsrecord component.final booleanIndicates whether some other object is "equal to" this one.floatfloatfloatfinal inthashCode()Returns a hash code value for this object.intleft()Returns the value of theleftrecord component.intright()Returns the value of therightrecord component.final StringtoString()Returns a string representation of this record class.intwidth()Methods inherited from class java.lang.Objectclone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.mojang.blaze3d.font.GlyphInfogetAdvance
- 
Field Details- 
contentsThe field for thecontentsrecord component.
- 
leftprivate final int leftThe field for theleftrecord component.
- 
rightprivate final int rightThe field for therightrecord component.
 
- 
- 
Constructor Details- 
GlyphGlyph(UnihexProvider.LineData contents, int left, int right) Creates an instance of aGlyphrecord class.- Parameters:
- contents- the value for the- contentsrecord component
- left- the value for the- leftrecord component
- right- the value for the- rightrecord component
 
 
- 
- 
Method Details- 
widthpublic int width()
- 
getAdvancepublic float getAdvance()- Specified by:
- getAdvancein interface- GlyphInfo
 
- 
getShadowOffsetpublic float getShadowOffset()- Specified by:
- getShadowOffsetin interface- GlyphInfo
 
- 
getBoldOffsetpublic float getBoldOffset()- Specified by:
- getBoldOffsetin 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 '=='.
- 
contentsReturns the value of thecontentsrecord component.- Returns:
- the value of the contentsrecord component
 
- 
leftpublic int left()Returns the value of theleftrecord component.- Returns:
- the value of the leftrecord component
 
- 
rightpublic int right()Returns the value of therightrecord component.- Returns:
- the value of the rightrecord component
 
 
-