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 isAlex)Creates an instance of aGameProfileDatarecord class. -
Method Summary
Modifier and TypeMethodDescriptioncapeUrl()Returns the value of thecapeUrlrecord component.booleanIndicates whether some other object is "equal to" this one.static SkinManager.GameProfileDatafrom(com.github.steveice10.mc.auth.data.GameProfile profile)Generate the GameProfileData from the given GameProfilestatic SkinManager.GameProfileDatafrom(com.github.steveice10.opennbt.tag.builtin.CompoundTag tag)Generate the GameProfileData from the given CompoundTag representing a GameProfileinthashCode()Returns a hash code value for this object.booleanisAlex()Returns the value of theisAlexrecord component.skinUrl()Returns the value of theskinUrlrecord component.toString()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 componentisAlex- the value for theisAlexrecord component
-
-
Method Details
-
from
@Nullable public static SkinManager.GameProfileData from(com.github.steveice10.opennbt.tag.builtin.CompoundTag tag)Generate the GameProfileData from the given CompoundTag representing a GameProfile- Parameters:
tag- tag to build the GameProfileData from- Returns:
- The built GameProfileData, or null if this wasn't a valid tag
-
from
public static SkinManager.GameProfileData from(com.github.steveice10.mc.auth.data.GameProfile profile)Generate the GameProfileData from the given GameProfile- Parameters:
profile- GameProfile 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
-
isAlex
public boolean isAlex()Returns the value of theisAlexrecord component.- Returns:
- the value of the
isAlexrecord component
-