Record Class GhostAppearance
java.lang.Object
java.lang.Record
com.iantapply.conflux.api.GhostAppearance
- Record Components:
playerId- unique identifier of the remote playerusername- current Minecraft usernameskinValue- signed profile texture value, or an empty stringskinSignature- profile texture signature, or an empty stringequipment- equipment worn or held by the player
-
Constructor Summary
ConstructorsConstructorDescriptionGhostAppearance(UUID playerId, String username, String skinValue, String skinSignature, GhostEquipment equipment) Validates an appearance snapshot. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.Returns the value of theequipmentrecord component.final inthashCode()Returns a hash code value for this object.playerId()Returns the value of theplayerIdrecord component.Returns the value of theskinSignaturerecord component.Returns the value of theskinValuerecord component.final StringtoString()Returns a string representation of this record class.username()Returns the value of theusernamerecord component.
-
Constructor Details
-
GhostAppearance
public GhostAppearance(UUID playerId, String username, String skinValue, String skinSignature, GhostEquipment equipment) Validates an appearance snapshot.
-
-
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). -
playerId
-
username
-
skinValue
-
skinSignature
Returns the value of theskinSignaturerecord component.- Returns:
- the value of the
skinSignaturerecord component
-
equipment
-