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$Rectangle
intermediary net/minecraft/class_382$class_328
official frq$a
named minX
intermediary comp_3307
official a
named minY
intermediary comp_3308
official b
named maxX
intermediary comp_3309
official c
named maxY
intermediary comp_3310
official d
named zIndex
intermediary comp_3311
official e
named color
intermediary comp_3312
official f
named shadowColor
intermediary comp_3336
official g
named shadowOffset
intermediary comp_3337
official h
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final int
The field for thecolor
record component.private final float
The field for themaxX
record component.private final float
The field for themaxY
record component.private final float
The field for theminX
record component.private final float
The field for theminY
record component.private final int
The field for theshadowColor
record component.private final float
The field for theshadowOffset
record component.private final float
The field for thezIndex
record component. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
color()
Returns the value of thecolor
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.(package private) boolean
float
maxX()
Returns the value of themaxX
record component.float
maxY()
Returns the value of themaxY
record component.float
minX()
Returns the value of theminX
record component.float
minY()
Returns the value of theminY
record component.int
Returns the value of theshadowColor
record component.float
Returns the value of theshadowOffset
record component.final String
toString()
Returns a string representation of this record class.float
zIndex()
Returns the value of thezIndex
record component.
-
Field Details
-
minX
private final float minXThe field for theminX
record component. -
minY
private final float minYThe field for theminY
record component. -
maxX
private final float maxXThe field for themaxX
record component. -
maxY
private final float maxYThe field for themaxY
record component. -
zIndex
private final float zIndexThe field for thezIndex
record component. -
color
private final int colorThe field for thecolor
record component. -
shadowColor
private final int shadowColorThe field for theshadowColor
record component. -
shadowOffset
private final float shadowOffsetThe field for theshadowOffset
record 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)V
intermediary <init>
Lnet/minecraft/class_382$class_328;<init>(FFFFFI)V
official <init>
Lfrq$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 hasShadow
Lnet/minecraft/client/font/BakedGlyph$Rectangle;hasShadow()Z
intermediary method_65183
Lnet/minecraft/class_382$class_328;method_65183()Z
official i
Lfrq$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 theminX
record component.- Returns:
- the value of the
minX
record component
-
minY
public float minY()Returns the value of theminY
record component.- Returns:
- the value of the
minY
record component
-
maxX
public float maxX()Returns the value of themaxX
record component.- Returns:
- the value of the
maxX
record component
-
maxY
public float maxY()Returns the value of themaxY
record component.- Returns:
- the value of the
maxY
record component
-
zIndex
public float zIndex()Returns the value of thezIndex
record component.- Returns:
- the value of the
zIndex
record component
-
color
public int color()Returns the value of thecolor
record component.- Returns:
- the value of the
color
record component
-
shadowColor
public int shadowColor()Returns the value of theshadowColor
record component.- Returns:
- the value of the
shadowColor
record component
-
shadowOffset
public float shadowOffset()Returns the value of theshadowOffset
record component.- Returns:
- the value of the
shadowOffset
record component
-