Record Class ResolvableProfile
java.lang.Object
java.lang.Record
net.minestom.server.network.player.ResolvableProfile
- All Implemented Interfaces:
PlayerHeadObjectContents.SkinSource
public record ResolvableProfile(Either<GameProfile, ResolvableProfile.Partial> profile, PlayerSkin.Patch patch)
extends Record
implements PlayerHeadObjectContents.SkinSource
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StructCodec<ResolvableProfile> static final ResolvableProfilestatic final NetworkBuffer.Type<ResolvableProfile> -
Constructor Summary
ConstructorsConstructorDescriptionResolvableProfile(PlayerSkin skin) ResolvableProfile(GameProfile profile) ResolvableProfile(GameProfile profile, PlayerSkin.Patch patch) ResolvableProfile(ResolvableProfile.Partial partial, PlayerSkin.Patch patch) ResolvableProfile(Either<GameProfile, ResolvableProfile.Partial> profile, PlayerSkin.Patch patch) Creates an instance of aResolvableProfilerecord class. -
Method Summary
Modifier and TypeMethodDescriptionvoidfinal booleanIndicates whether some other object is "equal to" this one.static ResolvableProfilefinal inthashCode()Returns a hash code value for this object.patch()Returns the value of thepatchrecord component.profile()Returns the value of theprofilerecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
EMPTY
-
NETWORK_TYPE
-
CODEC
-
-
Constructor Details
-
ResolvableProfile
public ResolvableProfile(Either<GameProfile, ResolvableProfile.Partial> profile, PlayerSkin.Patch patch) Creates an instance of aResolvableProfilerecord class.- Parameters:
profile- the value for theprofilerecord componentpatch- the value for thepatchrecord component
-
ResolvableProfile
-
ResolvableProfile
-
ResolvableProfile
-
ResolvableProfile
-
ResolvableProfile
-
-
Method Details
-
fromPlayerHeadContents
-
applySkinToPlayerHeadContents
- Specified by:
applySkinToPlayerHeadContentsin interfacePlayerHeadObjectContents.SkinSource
-
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). -
profile
Returns the value of theprofilerecord component.- Returns:
- the value of the
profilerecord component
-
patch
Returns the value of thepatchrecord component.- Returns:
- the value of the
patchrecord component
-