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$DrawnGlyphintermediary net/minecraft/class_382$class_10364official fwu$bnamed xintermediary comp_3313official anamed yintermediary comp_3314official bnamed colorintermediary comp_3315official cnamed shadowColorintermediary comp_3338official dnamed glyphintermediary comp_3316official enamed styleintermediary comp_3317official fnamed boldOffsetintermediary comp_3318official gnamed shadowOffsetintermediary comp_3339official h
-
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 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 Summary
ConstructorsConstructorDescriptionDrawnGlyph(float float2, float float3, int int2, int int3, BakedGlyph bakedGlyph, Style style, float float4, float float5) -
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.(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
-
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. -
shadowColor
private final int shadowColorThe field for theshadowColorrecord component. -
glyph
The field for theglyphrecord component. -
style
The field for thestylerecord component. -
boldOffset
private final float boldOffsetThe field for theboldOffsetrecord component. -
shadowOffset
private final float shadowOffsetThe field for theshadowOffsetrecord component.
-
-
Constructor Details
-
DrawnGlyph
public DrawnGlyph(float float2, float float3, int int2, int int3, BakedGlyph bakedGlyph, Style style, float float4, float float5)
-
-
Method Details
-
hasShadow
boolean hasShadow()- Mappings:
Namespace Name Mixin selector named hasShadowLnet/minecraft/client/font/BakedGlyph$DrawnGlyph;hasShadow()Zintermediary method_65184Lnet/minecraft/class_382$class_10364;method_65184()Zofficial iLfwu$b;i()Z
-
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
-
shadowColor
public int shadowColor()Returns the value of theshadowColorrecord component.- Returns:
- the value of the
shadowColorrecord 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
-
shadowOffset
public float shadowOffset()Returns the value of theshadowOffsetrecord component.- Returns:
- the value of the
shadowOffsetrecord component
-