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
ConstructorDescriptionGameProfileData(String skinUrl, String capeUrl, boolean isAlex)
Creates an instance of aGameProfileData
record class. -
Method Summary
Modifier and TypeMethodDescriptioncapeUrl()
Returns the value of thecapeUrl
record component.boolean
Indicates whether some other object is "equal to" this one.static SkinManager.GameProfileData
from(com.github.steveice10.mc.auth.data.GameProfile profile)
Generate the GameProfileData from the given GameProfilestatic SkinManager.GameProfileData
from(com.github.steveice10.opennbt.tag.builtin.CompoundTag tag)
Generate the GameProfileData from the given CompoundTag representing a GameProfileint
hashCode()
Returns a hash code value for this object.boolean
isAlex()
Returns the value of theisAlex
record component.skinUrl()
Returns the value of theskinUrl
record component.toString()
Returns a string representation of this record class.
-
Constructor Details
-
GameProfileData
Creates an instance of aGameProfileData
record class.- Parameters:
skinUrl
- the value for theskinUrl
record componentcapeUrl
- the value for thecapeUrl
record componentisAlex
- the value for theisAlex
record 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 theskinUrl
record component.- Returns:
- the value of the
skinUrl
record component
-
capeUrl
Returns the value of thecapeUrl
record component.- Returns:
- the value of the
capeUrl
record component
-
isAlex
public boolean isAlex()Returns the value of theisAlex
record component.- Returns:
- the value of the
isAlex
record component
-