Package net.minecraft.client.font
Record Class BakedGlyphImpl.DrawnGlyph
java.lang.Object
java.lang.Record
net.minecraft.client.font.BakedGlyphImpl.DrawnGlyph
- Record Components:
x-y-color-shadowColor-glyph-style-boldOffset-shadowOffset-
- All Implemented Interfaces:
class_12236,TextDrawable,TextDrawable.class_12238
- Enclosing class:
BakedGlyphImpl
@Environment(CLIENT)
private static record BakedGlyphImpl.DrawnGlyph(float x, float y, int color, int shadowColor, BakedGlyphImpl glyph, Style style, float boldOffset, float shadowOffset)
extends Record
implements TextDrawable.class_12238
- Mappings:
Namespace Name named net/minecraft/client/font/BakedGlyphImpl$DrawnGlyphintermediary net/minecraft/class_382$class_10364official gln$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
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.client.font.TextDrawable
TextDrawable.class_12238 -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final floatThe field for theboldOffsetrecord component.private final intThe field for thecolorrecord component.private final BakedGlyphImplThe 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 x, float y, int color, int shadowColor, BakedGlyphImpl glyph, Style style, float boldOffset, float shadowOffset) Creates an instance of aDrawnGlyphrecord class. -
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.floatfloatfloatfloatglyph()Returns the value of theglyphrecord component.final inthashCode()Returns a hash code value for this object.(package private) booleanfloatvoidrender(Matrix4f matrix4f, VertexConsumer consumer, int light, boolean noDepth) intReturns 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.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraft.client.font.TextDrawable.class_12238
method_75818, method_75819, method_75821
-
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
DrawnGlyph(float x, float y, int color, int shadowColor, BakedGlyphImpl glyph, Style style, float boldOffset, float shadowOffset) Creates an instance of aDrawnGlyphrecord class.- Parameters:
x- the value for thexrecord componenty- the value for theyrecord componentcolor- the value for thecolorrecord componentshadowColor- the value for theshadowColorrecord componentglyph- the value for theglyphrecord componentstyle- the value for thestylerecord componentboldOffset- the value for theboldOffsetrecord componentshadowOffset- the value for theshadowOffsetrecord component
-
-
Method Details
-
getEffectiveMinX
public float getEffectiveMinX()- Specified by:
getEffectiveMinXin interfaceTextDrawable- Mappings:
Namespace Name Mixin selector named getEffectiveMinXLnet/minecraft/client/font/TextDrawable;getEffectiveMinX()Fintermediary method_71829Lnet/minecraft/class_11767;method_71829()Fofficial rLgll;r()F
-
getEffectiveMinY
public float getEffectiveMinY()- Specified by:
getEffectiveMinYin interfaceTextDrawable- Mappings:
Namespace Name Mixin selector named getEffectiveMinYLnet/minecraft/client/font/TextDrawable;getEffectiveMinY()Fintermediary method_71830Lnet/minecraft/class_11767;method_71830()Fofficial tLgll;t()F
-
getEffectiveMaxX
public float getEffectiveMaxX()- Specified by:
getEffectiveMaxXin interfaceTextDrawable- Mappings:
Namespace Name Mixin selector named getEffectiveMaxXLnet/minecraft/client/font/TextDrawable;getEffectiveMaxX()Fintermediary method_71831Lnet/minecraft/class_11767;method_71831()Fofficial sLgll;s()F
-
method_75820
public float method_75820()- Specified by:
method_75820in interfaceclass_12236- Specified by:
method_75820in interfaceTextDrawable.class_12238- Mappings:
Namespace Name Mixin selector named method_75820Lnet/minecraft/class_12236;method_75820()Fintermediary method_75820Lnet/minecraft/class_12236;method_75820()Fofficial dLgkw;d()F
-
getEffectiveMaxY
public float getEffectiveMaxY()- Specified by:
getEffectiveMaxYin interfaceTextDrawable- Mappings:
Namespace Name Mixin selector named getEffectiveMaxYLnet/minecraft/client/font/TextDrawable;getEffectiveMaxY()Fintermediary method_71832Lnet/minecraft/class_11767;method_71832()Fofficial uLgll;u()F
-
hasShadow
boolean hasShadow()- Mappings:
Namespace Name Mixin selector named hasShadowLnet/minecraft/client/font/BakedGlyphImpl$DrawnGlyph;hasShadow()Zintermediary method_65184Lnet/minecraft/class_382$class_10364;method_65184()Zofficial oLgln$b;o()Z
-
render
- Specified by:
renderin interfaceTextDrawable- Mappings:
Namespace Name Mixin selector named renderLnet/minecraft/client/font/TextDrawable;render(Lorg/joml/Matrix4f;Lnet/minecraft/client/render/VertexConsumer;IZ)Vintermediary method_73403Lnet/minecraft/class_11767;method_73403(Lorg/joml/Matrix4f;Lnet/minecraft/class_4588;IZ)Vofficial aLgll;a(Lorg/joml/Matrix4f;Lfxc;IZ)V
-
getRenderLayer
- Specified by:
getRenderLayerin interfaceTextDrawable- Mappings:
Namespace Name Mixin selector named getRenderLayerLnet/minecraft/client/font/TextDrawable;getRenderLayer(Lnet/minecraft/client/font/TextRenderer$TextLayerType;)Lnet/minecraft/client/render/RenderLayer;intermediary method_73401Lnet/minecraft/class_11767;method_73401(Lnet/minecraft/class_327$class_6415;)Lnet/minecraft/class_1921;official aLgll;a(Lgga$a;)Lhjs;
-
textureView
- Specified by:
textureViewin interfaceTextDrawable- Mappings:
Namespace Name Mixin selector named textureViewLnet/minecraft/client/font/TextDrawable;textureView()Lcom/mojang/blaze3d/textures/GpuTextureView;intermediary comp_4629Lnet/minecraft/class_11767;comp_4629()Lcom/mojang/blaze3d/textures/GpuTextureView;official gLgll;g()Lcom/mojang/blaze3d/textures/GpuTextureView;
-
getPipeline
- Specified by:
getPipelinein interfaceTextDrawable- Mappings:
Namespace Name Mixin selector named getPipelineLnet/minecraft/client/font/TextDrawable;getPipeline()Lcom/mojang/blaze3d/pipeline/RenderPipeline;intermediary method_73400Lnet/minecraft/class_11767;method_73400()Lcom/mojang/blaze3d/pipeline/RenderPipeline;official fLgll;f()Lcom/mojang/blaze3d/pipeline/RenderPipeline;
-
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.- Specified by:
stylein interfaceclass_12236- 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
-