Package net.minecraft.client.font
Record Class BakedGlyph.DrawnGlyph
java.lang.Object
java.lang.Record
net.minecraft.client.font.BakedGlyph.DrawnGlyph
- Record Components:
x-y-color-glyph-style-boldOffset-
- Enclosing class:
BakedGlyph
@Environment(CLIENT)
public static record BakedGlyph.DrawnGlyph(float x, float y, int color, BakedGlyph glyph, Style style, float boldOffset)
extends Record
- Mappings:
Namespace Name named net/minecraft/client/font/BakedGlyph$DrawnGlyphintermediary net/minecraft/class_382$class_10364official frb$bnamed xintermediary comp_3313official anamed yintermediary comp_3314official bnamed colorintermediary comp_3315official cnamed glyphintermediary comp_3316official dnamed styleintermediary comp_3317official enamed boldOffsetintermediary comp_3318official f
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final floatThe field for theboldOffsetrecord component.private final intThe field for thecolorrecord component.private final BakedGlyphThe field for theglyphrecord component.private final StyleThe field for thestylerecord component.private final floatThe field for thexrecord component.private final floatThe field for theyrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionDrawnGlyph(float float2, float float3, int int2, BakedGlyph bakedGlyph, Style style, float float4) -
Method Summary
Modifier and TypeMethodDescriptionfloatReturns the value of theboldOffsetrecord component.intcolor()Returns the value of thecolorrecord component.final booleanIndicates whether some other object is "equal to" this one.glyph()Returns the value of theglyphrecord component.final inthashCode()Returns a hash code value for this object.style()Returns the value of thestylerecord component.final StringtoString()Returns a string representation of this record class.floatx()Returns the value of thexrecord component.floaty()Returns the value of theyrecord component.
-
Field Details
-
x
private final float xThe field for thexrecord component. -
y
private final float yThe field for theyrecord component. -
color
private final int colorThe field for thecolorrecord component. -
glyph
The field for theglyphrecord component. -
style
The field for thestylerecord component. -
boldOffset
private final float boldOffsetThe field for theboldOffsetrecord component.
-
-
Constructor Details
-
DrawnGlyph
public DrawnGlyph(float float2, float float3, int int2, BakedGlyph bakedGlyph, Style style, float float4)
-
-
Method Details
-
toString
Returns 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. -
hashCode
public 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. -
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 '=='. -
x
public float x()Returns the value of thexrecord component.- Returns:
- the value of the
xrecord component
-
y
public float y()Returns the value of theyrecord component.- Returns:
- the value of the
yrecord component
-
color
public int color()Returns the value of thecolorrecord component.- Returns:
- the value of the
colorrecord component
-
glyph
Returns the value of theglyphrecord component.- Returns:
- the value of the
glyphrecord component
-
style
Returns the value of thestylerecord component.- Returns:
- the value of the
stylerecord component
-
boldOffset
public float boldOffset()Returns the value of theboldOffsetrecord component.- Returns:
- the value of the
boldOffsetrecord component
-