Record Class TextFeatureRenderer.Content.StandaloneBackground
java.lang.Object
java.lang.Record
net.minecraft.client.renderer.feature.TextFeatureRenderer.Content.StandaloneBackground
- All Implemented Interfaces:
TextFeatureRenderer.Content
- Enclosing interface:
TextFeatureRenderer.Content
public static record TextFeatureRenderer.Content.StandaloneBackground(float x0, float y0, float x1, float y1, int color)
extends Record
implements TextFeatureRenderer.Content
-
Nested Class Summary
Nested classes/interfaces inherited from interface TextFeatureRenderer.Content
TextFeatureRenderer.Content.StandaloneBackground, TextFeatureRenderer.Content.Text -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final intThe field for thecolorrecord component.private final floatThe field for thex0record component.private final floatThe field for thex1record component.private final floatThe field for they0record component.private final floatThe field for they1record component. -
Constructor Summary
ConstructorsConstructorDescriptionStandaloneBackground(float x0, float y0, float x1, float y1, int color) Creates an instance of aStandaloneBackgroundrecord 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.final StringtoString()Returns a string representation of this record class.floatx0()Returns the value of thex0record component.floatx1()Returns the value of thex1record component.floaty0()Returns the value of they0record component.floaty1()Returns the value of they1record component.
-
Field Details
-
x0
private final float x0The field for thex0record component. -
y0
private final float y0The field for they0record component. -
x1
private final float x1The field for thex1record component. -
y1
private final float y1The field for they1record component. -
color
private final int colorThe field for thecolorrecord component.
-
-
Constructor Details
-
StandaloneBackground
public StandaloneBackground(float x0, float y0, float x1, float y1, int color) Creates an instance of aStandaloneBackgroundrecord class.- Parameters:
x0- the value for thex0record componenty0- the value for they0record componentx1- the value for thex1record componenty1- the value for they1record componentcolor- the value for thecolorrecord component
-
-
Method Details
-
toString
-
hashCode
-
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 thecomparemethod from their corresponding wrapper classes. -
x0
public float x0()Returns the value of thex0record component.- Returns:
- the value of the
x0record component
-
y0
public float y0()Returns the value of they0record component.- Returns:
- the value of the
y0record component
-
x1
public float x1()Returns the value of thex1record component.- Returns:
- the value of the
x1record component
-
y1
public float y1()Returns the value of they1record component.- Returns:
- the value of the
y1record component
-
color
public int color()Returns the value of thecolorrecord component.- Returns:
- the value of the
colorrecord component
-