Package net.minecraft.client.font
Record Class BakedGlyph.Rectangle
java.lang.Object
java.lang.Record
net.minecraft.client.font.BakedGlyph.Rectangle
- Record Components:
minX-minY-maxX-maxY-zIndex-color-shadowColor-shadowOffset-
- Enclosing class:
BakedGlyph
@Environment(CLIENT)
public static record BakedGlyph.Rectangle(float minX, float minY, float maxX, float maxY, float zIndex, int color, int shadowColor, float shadowOffset)
extends Record
- Mappings:
Namespace Name named net/minecraft/client/font/BakedGlyph$Rectangleintermediary net/minecraft/class_382$class_328official fwu$anamed minXintermediary comp_3307official anamed minYintermediary comp_3308official bnamed maxXintermediary comp_3309official cnamed maxYintermediary comp_3310official dnamed zIndexintermediary comp_3311official enamed colorintermediary comp_3312official fnamed shadowColorintermediary comp_3336official gnamed shadowOffsetintermediary comp_3337official h
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final intThe field for thecolorrecord 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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintcolor()Returns the value of thecolorrecord component.final booleanIndicates whether some other object is "equal to" this one.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.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
-
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
public Rectangle(float minX, float minY, float maxX, float maxY, float zIndex, int color) - Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/client/font/BakedGlyph$Rectangle;<init>(FFFFFI)Vintermediary <init>Lnet/minecraft/class_382$class_328;<init>(FFFFFI)Vofficial <init>Lfwu$a;<init>(FFFFFI)V
-
Rectangle
public Rectangle(float float2, float float3, float float4, float float5, float float6, int int2, int int3, float float7)
-
-
Method Details
-
hasShadow
boolean hasShadow()- Mappings:
Namespace Name Mixin selector named hasShadowLnet/minecraft/client/font/BakedGlyph$Rectangle;hasShadow()Zintermediary method_65183Lnet/minecraft/class_382$class_328;method_65183()Zofficial iLfwu$a;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. All components in this record class are compared with '=='. -
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
-