Package org.geysermc.geyser.skin
Record Class SkinManager.GameProfileData
java.lang.Object
java.lang.Record
org.geysermc.geyser.skin.SkinManager.GameProfileData
- Enclosing class:
SkinManager
-
Constructor Summary
ConstructorsConstructorDescriptionGameProfileData(String skinUrl, String capeUrl, boolean isSlim) Creates an instance of aGameProfileDatarecord class. -
Method Summary
Modifier and TypeMethodDescriptioncapeUrl()Returns the value of thecapeUrlrecord component.final booleanIndicates whether some other object is "equal to" this one.static @Nullable SkinManager.GameProfileDatafrom(AvatarEntity entity) Generate the GameProfileData from the given player entityfinal inthashCode()Returns a hash code value for this object.booleanisSlim()Returns the value of theisSlimrecord component.skinUrl()Returns the value of theskinUrlrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
GameProfileData
Creates an instance of aGameProfileDatarecord class.- Parameters:
skinUrl- the value for theskinUrlrecord componentcapeUrl- the value for thecapeUrlrecord componentisSlim- the value for theisSlimrecord component
-
-
Method Details
-
from
Generate the GameProfileData from the given player entity- Parameters:
entity- entity to build the GameProfileData from- Returns:
- The built GameProfileData
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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 '=='. -
skinUrl
Returns the value of theskinUrlrecord component.- Returns:
- the value of the
skinUrlrecord component
-
capeUrl
Returns the value of thecapeUrlrecord component.- Returns:
- the value of the
capeUrlrecord component
-
isSlim
public boolean isSlim()Returns the value of theisSlimrecord component.- Returns:
- the value of the
isSlimrecord component
-