Package net.minecraft.client.font
Record Class PlayerHeadGlyphs.HeadGlyph
java.lang.Object
java.lang.Record
net.minecraft.client.font.PlayerHeadGlyphs.HeadGlyph
- Record Components:
skin-hat-x-y-color-shadowColor-shadowOffset-style-
- All Implemented Interfaces:
DrawnSpriteGlyph,GlyphRect,TextDrawable,TextDrawable.DrawnGlyphRect
- Enclosing class:
PlayerHeadGlyphs
@Environment(CLIENT)
private static record PlayerHeadGlyphs.HeadGlyph(Supplier<PlayerSkinCache.Entry> skin, boolean hat, float x, float y, int color, int shadowColor, float shadowOffset, Style style)
extends Record
implements DrawnSpriteGlyph
- Mappings:
Namespace Name named net/minecraft/client/font/PlayerHeadGlyphs$HeadGlyphintermediary net/minecraft/class_11879$class_11880official gme$anamed skinintermediary comp_4754official dnamed hatintermediary comp_4755official enamed xintermediary comp_4631official fnamed yintermediary comp_4632official gnamed colorintermediary comp_4633official hnamed shadowColorintermediary comp_4634official inamed shadowOffsetintermediary comp_4635official jnamed styleintermediary comp_3317official k
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.client.font.TextDrawable
TextDrawable.DrawnGlyphRect -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final intThe field for thecolorrecord component.private final booleanThe field for thehatrecord component.private final intThe field for theshadowColorrecord component.private final floatThe field for theshadowOffsetrecord component.private final Supplier<PlayerSkinCache.Entry> The field for theskinrecord component.private final StyleThe field for thestylerecord component.private final floatThe field for thexrecord component.private final floatThe field for theyrecord component.Fields inherited from interface net.minecraft.client.font.DrawnSpriteGlyph
field_63888, field_63889, field_63890 -
Constructor Summary
ConstructorsConstructorDescriptionHeadGlyph(Supplier<PlayerSkinCache.Entry> skin, boolean hat, float x, float y, int color, int shadowColor, float shadowOffset, Style style) Creates an instance of aHeadGlyphrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintcolor()Returns the value of thecolorrecord component.voiddraw(Matrix4f matrix, VertexConsumer vertexConsumer, int light, float x, float y, float z, int color) private static voiddrawInternal(Matrix4f matrix, VertexConsumer vertexConsumer, int light, float xMin, float xMax, float yMin, float yMax, float z, int color, float regionTop, float regionLeft, int regionWidth, int regionHeight, int textureWidth, int textureHeight) final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanhat()Returns the value of thehatrecord component.intReturns the value of theshadowColorrecord component.floatReturns the value of theshadowOffsetrecord component.skin()Returns the value of theskinrecord 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.DrawnSpriteGlyph
getAscent, getEffectiveMaxX, getEffectiveMaxY, getEffectiveMinX, getEffectiveMinY, getHeight, getWidth, renderMethods inherited from interface net.minecraft.client.font.TextDrawable.DrawnGlyphRect
getBottom, getLeft, getRight, getTop
-
Field Details
-
skin
The field for theskinrecord component. -
hat
private final boolean hatThe field for thehatrecord component. -
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. -
shadowOffset
private final float shadowOffsetThe field for theshadowOffsetrecord component. -
style
The field for thestylerecord component.
-
-
Constructor Details
-
HeadGlyph
HeadGlyph(Supplier<PlayerSkinCache.Entry> skin, boolean hat, float x, float y, int color, int shadowColor, float shadowOffset, Style style) Creates an instance of aHeadGlyphrecord class.- Parameters:
skin- the value for theskinrecord componenthat- the value for thehatrecord componentx- the value for thexrecord componenty- the value for theyrecord componentcolor- the value for thecolorrecord componentshadowColor- the value for theshadowColorrecord componentshadowOffset- the value for theshadowOffsetrecord componentstyle- the value for thestylerecord component
-
-
Method Details
-
draw
public void draw(Matrix4f matrix, VertexConsumer vertexConsumer, int light, float x, float y, float z, int color) - Specified by:
drawin interfaceDrawnSpriteGlyph- Mappings:
Namespace Name Mixin selector named drawLnet/minecraft/client/font/DrawnSpriteGlyph;draw(Lorg/joml/Matrix4f;Lnet/minecraft/client/render/VertexConsumer;IFFFI)Vintermediary method_73402Lnet/minecraft/class_11878;method_73402(Lorg/joml/Matrix4f;Lnet/minecraft/class_4588;IFFFI)Vofficial aLgmd;a(Lorg/joml/Matrix4f;Lfxx;IFFFI)V
-
drawInternal
private static void drawInternal(Matrix4f matrix, VertexConsumer vertexConsumer, int light, float xMin, float xMax, float yMin, float yMax, float z, int color, float regionTop, float regionLeft, int regionWidth, int regionHeight, int textureWidth, int textureHeight) - Mappings:
Namespace Name Mixin selector named drawInternalLnet/minecraft/client/font/PlayerHeadGlyphs$HeadGlyph;drawInternal(Lorg/joml/Matrix4f;Lnet/minecraft/client/render/VertexConsumer;IFFFFFIFFIIII)Vintermediary method_74042Lnet/minecraft/class_11879$class_11880;method_74042(Lorg/joml/Matrix4f;Lnet/minecraft/class_4588;IFFFFFIFFIIII)Vofficial aLgme$a;a(Lorg/joml/Matrix4f;Lfxx;IFFFFFIFFIIII)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 aLgmh;a(Lggv$a;)Lifd;
-
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 fLgmh;f()Lcom/mojang/blaze3d/pipeline/RenderPipeline;
-
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 gLgmh;g()Lcom/mojang/blaze3d/textures/GpuTextureView;
-
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 '=='. -
skin
Returns the value of theskinrecord component.- Returns:
- the value of the
skinrecord component
-
hat
public boolean hat()Returns the value of thehatrecord component.- Returns:
- the value of the
hatrecord component
-
x
public float x()Returns the value of thexrecord component.- Specified by:
xin interfaceDrawnSpriteGlyph- Returns:
- the value of the
xrecord component
-
y
public float y()Returns the value of theyrecord component.- Specified by:
yin interfaceDrawnSpriteGlyph- Returns:
- the value of the
yrecord component
-
color
public int color()Returns the value of thecolorrecord component.- Specified by:
colorin interfaceDrawnSpriteGlyph- Returns:
- the value of the
colorrecord component
-
shadowColor
public int shadowColor()Returns the value of theshadowColorrecord component.- Specified by:
shadowColorin interfaceDrawnSpriteGlyph- Returns:
- the value of the
shadowColorrecord component
-
shadowOffset
public float shadowOffset()Returns the value of theshadowOffsetrecord component.- Specified by:
shadowOffsetin interfaceDrawnSpriteGlyph- Returns:
- the value of the
shadowOffsetrecord component
-
style
Returns the value of thestylerecord component.
-