Record Class GameTestBlockHighlightRenderer.Marker
java.lang.Object
java.lang.Record
net.minecraft.client.renderer.debug.GameTestBlockHighlightRenderer.Marker
- Enclosing class:
GameTestBlockHighlightRenderer
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final intThe field for thecolorrecord component.private final longThe field for theremoveAtTimerecord component.private final StringThe field for thetextrecord 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.floatgetA()floatgetB()floatgetG()floatgetR()final inthashCode()Returns a hash code value for this object.longReturns the value of theremoveAtTimerecord component.text()Returns the value of thetextrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
color
private final int colorThe field for thecolorrecord component. -
text
The field for thetextrecord component. -
removeAtTime
private final long removeAtTimeThe field for theremoveAtTimerecord component.
-
-
Constructor Details
-
Marker
Marker(int color, String text, long removeAtTime) Creates an instance of aMarkerrecord class.- Parameters:
color- the value for thecolorrecord componenttext- the value for thetextrecord componentremoveAtTime- the value for theremoveAtTimerecord component
-
-
Method Details
-
getR
public float getR() -
getG
public float getG() -
getB
public float getB() -
getA
public float getA() -
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 '=='. -
color
public int color()Returns the value of thecolorrecord component.- Returns:
- the value of the
colorrecord component
-
text
Returns the value of thetextrecord component.- Returns:
- the value of the
textrecord component
-
removeAtTime
public long removeAtTime()Returns the value of theremoveAtTimerecord component.- Returns:
- the value of the
removeAtTimerecord component
-