Record Class Selector.Special.Banner
java.lang.Object
java.lang.Record
com.github.darksoulq.abyssallib.server.resource.asset.definition.Selector.Special.Banner
- All Implemented Interfaces:
Selector.Special.Type
- Enclosing class:
Selector.Special
public static record Selector.Special.Banner(NamedColor color, @Nullable Selector.Special.Banner.Attachment attachment)
extends Record
implements Selector.Special.Type
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionBanner(NamedColor color) Banner(NamedColor color, Selector.Special.Banner.Attachment attachment) Creates an instance of aBannerrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theattachmentrecord component.color()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.id()toJson()final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Banner
-
Banner
Creates an instance of aBannerrecord class.- Parameters:
color- the value for thecolorrecord componentattachment- the value for theattachmentrecord component
-
-
Method Details
-
id
- Specified by:
idin interfaceSelector.Special.Type
-
toJson
- Specified by:
toJsonin interfaceSelector.Special.Type
-
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). -
color
Returns the value of thecolorrecord component.- Returns:
- the value of the
colorrecord component
-
attachment
Returns the value of theattachmentrecord component.- Returns:
- the value of the
attachmentrecord component
-