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-
- shadowColor-
- glyph-
- style-
- boldOffset-
- shadowOffset-
- Enclosing class:
- BakedGlyph
@Environment(CLIENT)
public static record BakedGlyph.DrawnGlyph(float x, float y, int color, int shadowColor, BakedGlyph glyph, Style style, float boldOffset, float shadowOffset)
extends Record
- Mappings:
- Namespace - Name - named - net/minecraft/client/font/BakedGlyph$DrawnGlyph- intermediary - net/minecraft/class_382$class_10364- official - frq$b- named - x- intermediary - comp_3313- official - a- named - y- intermediary - comp_3314- official - b- named - color- intermediary - comp_3315- official - c- named - shadowColor- intermediary - comp_3338- official - d- named - glyph- intermediary - comp_3316- official - e- named - style- intermediary - comp_3317- official - f- named - boldOffset- intermediary - comp_3318- official - g- named - shadowOffset- intermediary - comp_3339- official - h
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate final floatThe field for theboldOffsetrecord component.private final intThe field for thecolorrecord component.private final BakedGlyphThe field for theglyphrecord component.private final intThe field for theshadowColorrecord component.private final floatThe field for theshadowOffsetrecord component.private final StyleThe field for thestylerecord component.private final floatThe field for thexrecord component.private final floatThe field for theyrecord component.
- 
Constructor SummaryConstructorsConstructorDescriptionDrawnGlyph(float float2, float float3, int int2, int int3, BakedGlyph bakedGlyph, Style style, float float4, float float5) 
- 
Method SummaryModifier 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.(package private) booleanintReturns the value of theshadowColorrecord component.floatReturns the value of theshadowOffsetrecord component.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- 
xprivate final float xThe field for thexrecord component.
- 
yprivate final float yThe field for theyrecord component.
- 
colorprivate final int colorThe field for thecolorrecord component.
- 
shadowColorprivate final int shadowColorThe field for theshadowColorrecord component.
- 
glyphThe field for theglyphrecord component.
- 
styleThe field for thestylerecord component.
- 
boldOffsetprivate final float boldOffsetThe field for theboldOffsetrecord component.
- 
shadowOffsetprivate final float shadowOffsetThe field for theshadowOffsetrecord component.
 
- 
- 
Constructor Details- 
DrawnGlyphpublic DrawnGlyph(float float2, float float3, int int2, int int3, BakedGlyph bakedGlyph, Style style, float float4, float float5) 
 
- 
- 
Method Details- 
hasShadowboolean hasShadow()- Mappings:
- Namespace - Name - Mixin selector - named - hasShadow- Lnet/minecraft/client/font/BakedGlyph$DrawnGlyph;hasShadow()Z- intermediary - method_65184- Lnet/minecraft/class_382$class_10364;method_65184()Z- official - i- Lfrq$b;i()Z
 
- 
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 '=='.
- 
xpublic float x()Returns the value of thexrecord component.- Returns:
- the value of the xrecord component
 
- 
ypublic float y()Returns the value of theyrecord component.- Returns:
- the value of the yrecord component
 
- 
colorpublic int color()Returns the value of thecolorrecord component.- Returns:
- the value of the colorrecord component
 
- 
shadowColorpublic int shadowColor()Returns the value of theshadowColorrecord component.- Returns:
- the value of the shadowColorrecord component
 
- 
glyphReturns the value of theglyphrecord component.- Returns:
- the value of the glyphrecord component
 
- 
styleReturns the value of thestylerecord component.- Returns:
- the value of the stylerecord component
 
- 
boldOffsetpublic float boldOffset()Returns the value of theboldOffsetrecord component.- Returns:
- the value of the boldOffsetrecord component
 
- 
shadowOffsetpublic float shadowOffset()Returns the value of theshadowOffsetrecord component.- Returns:
- the value of the shadowOffsetrecord component
 
 
-