Record Class GuiStyleValue.Token<T>
java.lang.Object
java.lang.Record
com.render.api.gui.style.GuiStyleValue.Token<T>
- Type Parameters:
T- property type- Record Components:
token- shared value
- All Implemented Interfaces:
GuiStyleValue<T>
- Enclosing interface:
GuiStyleValue<T>
public static record GuiStyleValue.Token<T>(GuiStyleToken<T> token)
extends Record
implements GuiStyleValue<T>
A live token reference, resolved during the modern cascade.
-
Nested Class Summary
Nested classes/interfaces inherited from interface GuiStyleValue
GuiStyleValue.Keyword<T>, GuiStyleValue.Kind, GuiStyleValue.Literal<T>, GuiStyleValue.Token<T> -
Constructor Summary
Constructors -
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.token()Returns the value of thetokenrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Token
Creates an instance of aTokenrecord class.- Parameters:
token- the value for thetokenrecord 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). -
token
-