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-
- Enclosing class:
BakedGlyph
@Environment(CLIENT)
public static record BakedGlyph.Rectangle(float minX, float minY, float maxX, float maxY, float zIndex, int color)
extends Record
- Mappings:
Namespace Name named net/minecraft/client/font/BakedGlyph$Rectangleintermediary net/minecraft/class_382$class_328official frb$anamed minXintermediary comp_3307official anamed minYintermediary comp_3308official bnamed maxXintermediary comp_3309official cnamed maxYintermediary comp_3310official dnamed zIndexintermediary comp_3311official enamed colorintermediary comp_3312official f
-
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 floatThe field for thezIndexrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionRectangle(float minX, float minY, float maxX, float maxY, float zIndex, int color) Creates an instance of aRectanglerecord class. -
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.floatmaxX()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.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.
-
-
Constructor Details
-
Rectangle
public Rectangle(float minX, float minY, float maxX, float maxY, float zIndex, int color) Creates an instance of aRectanglerecord class.
-
-
Method Details
-
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
-