Record Class Cape
java.lang.Object
java.lang.Record
lol.trq.alts.account.Cape
- Record Components:
id- the cape id, whichCapeService.setActive(String)takesstate- whether this cape is currently shownurl- the cape texture URLalias- the cape's human name (for example"Migrator")
One cape the account owns, as the profile read returns it. An account may own several and show at most
one;
CapeService switches between them by id().- Since:
- 0.11.0
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumWhether a cape is the one currently shown. -
Constructor Summary
ConstructorsConstructorDescriptionCape(String id, Cape.State state, String url, String alias) Creates an instance of aCaperecord class. -
Method Summary
Modifier and TypeMethodDescriptionalias()Returns the value of thealiasrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.state()Returns the value of thestaterecord component.final StringtoString()Returns a string representation of this record class.url()Returns the value of theurlrecord component.
-
Constructor Details
-
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). -
id
-
state
-
url
-
alias
-