Package net.minecraft.client.font
Record Class BakedGlyphImpl.Rectangle
java.lang.Object
java.lang.Record
net.minecraft.client.font.BakedGlyphImpl.Rectangle
- Record Components:
glyph-minX-minY-maxX-maxY-zIndex-color-shadowColor-shadowOffset-
- All Implemented Interfaces:
TextDrawable
- Enclosing class:
BakedGlyphImpl
@Environment(CLIENT)
private static record BakedGlyphImpl.Rectangle(BakedGlyphImpl glyph, float minX, float minY, float maxX, float maxY, float zIndex, int color, int shadowColor, float shadowOffset)
extends Record
implements TextDrawable
- Mappings:
Namespace Name named net/minecraft/client/font/BakedGlyphImpl$Rectangleintermediary net/minecraft/class_382$class_328official gij$anamed glyphintermediary comp_4636official anamed minXintermediary comp_3307official bnamed minYintermediary comp_3308official cnamed maxXintermediary comp_3309official dnamed maxYintermediary comp_3310official enamed zIndexintermediary comp_3311official fnamed colorintermediary comp_3312official gnamed shadowColorintermediary comp_3336official hnamed shadowOffsetintermediary comp_3337official i
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final intThe field for thecolorrecord component.private final BakedGlyphImplThe field for theglyphrecord component.private final floatThe field for themaxXrecord component.private final floatThe field for themaxYrecord component.private final floatThe field for theminXrecord component.private final floatThe field for theminYrecord component.private final intThe field for theshadowColorrecord component.private final floatThe field for theshadowOffsetrecord component.private final floatThe field for thezIndexrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionRectangle(BakedGlyphImpl bakedGlyphImpl, float float2, float float3, float float4, float float5, float float6, int int2, int int3, float float7) -
Method Summary
Modifier and TypeMethodDescriptionintcolor()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) booleanfloatmaxX()Returns the value of themaxXrecord component.floatmaxY()Returns the value of themaxYrecord component.floatminX()Returns the value of theminXrecord component.floatminY()Returns the value of theminYrecord component.voidrender(Matrix4f matrix4f, VertexConsumer consumer, int light, boolean noDepth) intReturns the value of theshadowColorrecord component.floatReturns the value of theshadowOffsetrecord component.final StringtoString()Returns a string representation of this record class.floatzIndex()Returns the value of thezIndexrecord component.
-
Field Details
-
glyph
The field for theglyphrecord component. -
minX
private final float minXThe field for theminXrecord component. -
minY
private final float minYThe field for theminYrecord component. -
maxX
private final float maxXThe field for themaxXrecord component. -
maxY
private final float maxYThe field for themaxYrecord component. -
zIndex
private final float zIndexThe field for thezIndexrecord 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.
-
-
Constructor Details
-
Rectangle
Rectangle(BakedGlyphImpl bakedGlyphImpl, float float2, float float3, float float4, float float5, float float6, int int2, int int3, float float7)
-
-
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 cLgih;c()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 eLgih;e()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 dLgih;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 fLgih;f()F
-
hasShadow
boolean hasShadow()- Mappings:
Namespace Name Mixin selector named hasShadowLnet/minecraft/client/font/BakedGlyphImpl$Rectangle;hasShadow()Zintermediary method_65183Lnet/minecraft/class_382$class_328;method_65183()Zofficial pLgij$a;p()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 aLgih;a(Lorg/joml/Matrix4f;Lfud;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 aLgih;a(Lgda$a;)Lhgk;
-
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 bLgih;b()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 aLgih;a()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 '=='. -
glyph
Returns the value of theglyphrecord component.- Returns:
- the value of the
glyphrecord component
-
minX
public float minX()Returns the value of theminXrecord component.- Returns:
- the value of the
minXrecord component
-
minY
public float minY()Returns the value of theminYrecord component.- Returns:
- the value of the
minYrecord component
-
maxX
public float maxX()Returns the value of themaxXrecord component.- Returns:
- the value of the
maxXrecord component
-
maxY
public float maxY()Returns the value of themaxYrecord component.- Returns:
- the value of the
maxYrecord component
-
zIndex
public float zIndex()Returns the value of thezIndexrecord component.- Returns:
- the value of the
zIndexrecord 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
-
shadowOffset
public float shadowOffset()Returns the value of theshadowOffsetrecord component.- Returns:
- the value of the
shadowOffsetrecord component
-