Record Class MCProfileJavaResponse
java.lang.Object
java.lang.Record
com.zenith.feature.api.mcprofile.model.MCProfileJavaResponse
- All Implemented Interfaces:
ProfileData
-
Constructor Summary
ConstructorsConstructorDescriptionMCProfileJavaResponse(String username, UUID uuid, String skin, String cape, boolean linked) Creates an instance of aMCProfileJavaResponserecord class. -
Method Summary
Modifier and TypeMethodDescriptioncape()Returns the value of thecaperecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanlinked()Returns the value of thelinkedrecord component.name()skin()Returns the value of theskinrecord component.final StringtoString()Returns a string representation of this record class.username()Returns the value of theusernamerecord component.uuid()Returns the value of theuuidrecord component.
-
Constructor Details
-
MCProfileJavaResponse
Creates an instance of aMCProfileJavaResponserecord class.- Parameters:
username- the value for theusernamerecord componentuuid- the value for theuuidrecord componentskin- the value for theskinrecord componentcape- the value for thecaperecord componentlinked- the value for thelinkedrecord component
-
-
Method Details
-
name
- Specified by:
namein interfaceProfileData
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
username
Returns the value of theusernamerecord component.- Returns:
- the value of the
usernamerecord component
-
uuid
Returns the value of theuuidrecord component.- Specified by:
uuidin interfaceProfileData- Returns:
- the value of the
uuidrecord component
-
skin
Returns the value of theskinrecord component.- Returns:
- the value of the
skinrecord component
-
cape
Returns the value of thecaperecord component.- Returns:
- the value of the
caperecord component
-
linked
public boolean linked()Returns the value of thelinkedrecord component.- Returns:
- the value of the
linkedrecord component
-