Record Class ResolvableProfile
java.lang.Object
java.lang.Record
net.minecraft.world.item.component.ResolvableProfile
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<ResolvableProfile> private static final com.mojang.serialization.Codec<ResolvableProfile> private final com.mojang.authlib.GameProfileThe field for thegameProfilerecord component.The field for theidrecord component.The field for thenamerecord component.private final com.mojang.authlib.properties.PropertyMapThe field for thepropertiesrecord component.static final StreamCodec<io.netty.buffer.ByteBuf, ResolvableProfile> 
- 
Constructor SummaryConstructorsConstructorDescriptionResolvableProfile(com.mojang.authlib.GameProfile p_332940_) ResolvableProfile(Optional<String> p_328556_, Optional<UUID> p_331819_, com.mojang.authlib.properties.PropertyMap p_329390_) ResolvableProfile(Optional<String> name, Optional<UUID> id, com.mojang.authlib.properties.PropertyMap properties, com.mojang.authlib.GameProfile gameProfile) Creates an instance of aResolvableProfilerecord class.
- 
Method SummaryModifier and TypeMethodDescriptionprivate static com.mojang.authlib.GameProfilecreateProfile(Optional<String> p_329472_, Optional<UUID> p_333643_, com.mojang.authlib.properties.PropertyMap p_330035_) final booleanIndicates whether some other object is "equal to" this one.com.mojang.authlib.GameProfileReturns the value of thegameProfilerecord component.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.booleanname()Returns the value of thenamerecord component.com.mojang.authlib.properties.PropertyMapReturns the value of thepropertiesrecord component.resolve()final StringtoString()Returns a string representation of this record class.
- 
Field Details- 
nameThe field for thenamerecord component.
- 
idThe field for theidrecord component.
- 
propertiesprivate final com.mojang.authlib.properties.PropertyMap propertiesThe field for thepropertiesrecord component.
- 
gameProfileprivate final com.mojang.authlib.GameProfile gameProfileThe field for thegameProfilerecord component.
- 
FULL_CODEC
- 
CODEC
- 
STREAM_CODEC
 
- 
- 
Constructor Details- 
ResolvableProfile
- 
ResolvableProfilepublic ResolvableProfile(com.mojang.authlib.GameProfile p_332940_) 
- 
ResolvableProfilepublic ResolvableProfile(Optional<String> name, Optional<UUID> id, com.mojang.authlib.properties.PropertyMap properties, com.mojang.authlib.GameProfile gameProfile) Creates an instance of aResolvableProfilerecord class.- Parameters:
- name- the value for the- namerecord component
- id- the value for the- idrecord component
- properties- the value for the- propertiesrecord component
- gameProfile- the value for the- gameProfilerecord component
 
 
- 
- 
Method Details- 
resolve
- 
createProfile
- 
isResolvedpublic boolean isResolved()
- 
toStringReturns 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.
- 
hashCodepublic 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.
- 
equalsIndicates 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).
- 
nameReturns the value of thenamerecord component.- Returns:
- the value of the namerecord component
 
- 
idReturns the value of theidrecord component.- Returns:
- the value of the idrecord component
 
- 
propertiespublic com.mojang.authlib.properties.PropertyMap properties()Returns the value of thepropertiesrecord component.- Returns:
- the value of the propertiesrecord component
 
- 
gameProfilepublic com.mojang.authlib.GameProfile gameProfile()Returns the value of thegameProfilerecord component.- Returns:
- the value of the gameProfilerecord component
 
 
-