Record Class GuiGeneratedContent.Attribute
java.lang.Object
java.lang.Record
com.render.api.gui.GuiGeneratedContent.Attribute
- All Implemented Interfaces:
GuiGeneratedContent.Part
- Enclosing class:
GuiGeneratedContent
public static record GuiGeneratedContent.Attribute(GuiStyleAttribute<?> attribute, String fallback)
extends Record
implements GuiGeneratedContent.Part
-
Constructor Summary
ConstructorsConstructorDescriptionAttribute(GuiStyleAttribute<?> attribute, String fallback) Creates an instance of aAttributerecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theattributerecord component.final booleanIndicates whether some other object is "equal to" this one.fallback()Returns the value of thefallbackrecord component.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Attribute
Creates an instance of aAttributerecord class.- Parameters:
attribute- the value for theattributerecord componentfallback- the value for thefallbackrecord 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). -
attribute
Returns the value of theattributerecord component.- Returns:
- the value of the
attributerecord component
-
fallback
Returns the value of thefallbackrecord component.- Returns:
- the value of the
fallbackrecord component
-