Record Class UnihexProvider.Glyph
java.lang.Object
java.lang.Record
net.minecraft.client.gui.font.providers.UnihexProvider.Glyph
- All Implemented Interfaces:
UnbakedGlyph
- Enclosing class:
UnihexProvider
private static record UnihexProvider.Glyph(UnihexProvider.LineData contents, int left, int right)
extends Record
implements UnbakedGlyph
-
Nested Class Summary
Nested classes/interfaces inherited from interface UnbakedGlyph
UnbakedGlyph.Stitcher -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final UnihexProvider.LineDataThe field for thecontentsrecord component.private final intThe field for theleftrecord component.private final intThe field for therightrecord component. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateGlyph(UnihexProvider.LineData contents, int left, int right) Creates an instance of aGlyphrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbake(UnbakedGlyph.Stitcher stitcher) contents()Returns the value of thecontentsrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.info()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()
-
Field Details
-
contents
The field for thecontentsrecord component. -
left
private final int leftThe field for theleftrecord component. -
right
private final int rightThe field for therightrecord component.
-
-
Constructor Details
-
Glyph
Creates an instance of aGlyphrecord class.- Parameters:
contents- the value for thecontentsrecord componentleft- the value for theleftrecord componentright- the value for therightrecord component
-
-
Method Details
-
width
public int width() -
info
- Specified by:
infoin interfaceUnbakedGlyph
-
bake
- Specified by:
bakein interfaceUnbakedGlyph
-
toString
-
hashCode
-
equals
Indicates 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 thecomparemethod from their corresponding wrapper classes. -
contents
Returns the value of thecontentsrecord component.- Returns:
- the value of the
contentsrecord component
-
left
public int left()Returns the value of theleftrecord component.- Returns:
- the value of the
leftrecord component
-
right
public int right()Returns the value of therightrecord component.- Returns:
- the value of the
rightrecord component
-