Record Class GuiGradient.Hint
java.lang.Object
java.lang.Record
com.render.api.gui.GuiGradient.Hint
- Record Components:
position- hint position
- All Implemented Interfaces:
GuiGradient.Step
- Enclosing class:
GuiGradient
public static record GuiGradient.Hint(GuiGradient.Position position)
extends Record
implements GuiGradient.Step
Explicit color interpolation hint between the neighboring color stops.
-
Constructor Summary
ConstructorsConstructorDescriptionHint(GuiGradient.Position position) Creates an instance of aHintrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.position()Returns the value of thepositionrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Hint
Creates an instance of aHintrecord class.- Parameters:
position- the value for thepositionrecord 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 withObjects::equals(Object,Object). -
position
-