Package net.minecraft.component.type
Record Class ProfileComponent
java.lang.Object
java.lang.Record
net.minecraft.component.type.ProfileComponent
- Record Components:
name-id-properties-gameProfile-
public record ProfileComponent(Optional<String> name, Optional<UUID> id, com.mojang.authlib.properties.PropertyMap properties, com.mojang.authlib.GameProfile gameProfile)
extends Record
- Mappings:
Namespace Name official cupintermediary net/minecraft/class_9296named net/minecraft/component/type/ProfileComponentofficial cintermediary comp_2410named nameofficial dintermediary comp_2411named idofficial eintermediary comp_2412named propertiesofficial fintermediary comp_2413named gameProfile
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<ProfileComponent> private static final com.mojang.serialization.Codec<ProfileComponent> private final com.mojang.authlib.GameProfileThe field for thegameProfilerecord component.The field for theidrecord component.The field for thenamerecord component.static final PacketCodec<ByteBuf, ProfileComponent> private final com.mojang.authlib.properties.PropertyMapThe field for thepropertiesrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionProfileComponent(com.mojang.authlib.GameProfile gameProfile) ProfileComponent(Optional<String> optional, Optional<UUID> id, com.mojang.authlib.properties.PropertyMap properties) ProfileComponent(Optional<String> optional, Optional<UUID> optional2, com.mojang.authlib.properties.PropertyMap propertyMap, com.mojang.authlib.GameProfile gameProfile) -
Method Summary
Modifier and TypeMethodDescriptionprivate static com.mojang.authlib.GameProfilecreateProfile(Optional<String> optional, Optional<UUID> id, com.mojang.authlib.properties.PropertyMap properties) 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.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
name
The field for thenamerecord component. -
id
The field for theidrecord component. -
properties
private final com.mojang.authlib.properties.PropertyMap propertiesThe field for thepropertiesrecord component. -
gameProfile
private final com.mojang.authlib.GameProfile gameProfileThe field for thegameProfilerecord component. -
field_49752
- Mappings:
Namespace Name Mixin selector official gLcup;g:Lcom/mojang/serialization/Codec;intermediary field_49752Lnet/minecraft/class_9296;field_49752:Lcom/mojang/serialization/Codec;named field_49752Lnet/minecraft/component/type/ProfileComponent;field_49752:Lcom/mojang/serialization/Codec;
-
CODEC
- Mappings:
Namespace Name Mixin selector official aLcup;a:Lcom/mojang/serialization/Codec;intermediary field_49359Lnet/minecraft/class_9296;field_49359:Lcom/mojang/serialization/Codec;named CODECLnet/minecraft/component/type/ProfileComponent;CODEC:Lcom/mojang/serialization/Codec;
-
PACKET_CODEC
- Mappings:
Namespace Name Mixin selector official bLcup;b:Lyg;intermediary field_49360Lnet/minecraft/class_9296;field_49360:Lnet/minecraft/class_9139;named PACKET_CODECLnet/minecraft/component/type/ProfileComponent;PACKET_CODEC:Lnet/minecraft/network/codec/PacketCodec;
-
-
Constructor Details
-
ProfileComponent
public ProfileComponent(Optional<String> optional, Optional<UUID> id, com.mojang.authlib.properties.PropertyMap properties) - Mappings:
Namespace Name Mixin selector official <init>Lcup;<init>(Ljava/util/Optional;Ljava/util/Optional;Lcom/mojang/authlib/properties/PropertyMap;)Vintermediary <init>Lnet/minecraft/class_9296;<init>(Ljava/util/Optional;Ljava/util/Optional;Lcom/mojang/authlib/properties/PropertyMap;)Vnamed <init>Lnet/minecraft/component/type/ProfileComponent;<init>(Ljava/util/Optional;Ljava/util/Optional;Lcom/mojang/authlib/properties/PropertyMap;)V
-
ProfileComponent
public ProfileComponent(com.mojang.authlib.GameProfile gameProfile) - Mappings:
Namespace Name Mixin selector official <init>Lcup;<init>(Lcom/mojang/authlib/GameProfile;)Vintermediary <init>Lnet/minecraft/class_9296;<init>(Lcom/mojang/authlib/GameProfile;)Vnamed <init>Lnet/minecraft/component/type/ProfileComponent;<init>(Lcom/mojang/authlib/GameProfile;)V
-
ProfileComponent
-
-
Method Details
-
getFuture
- Mappings:
Namespace Name Mixin selector official aLcup;a()Ljava/util/concurrent/CompletableFuture;intermediary method_57507Lnet/minecraft/class_9296;method_57507()Ljava/util/concurrent/CompletableFuture;named getFutureLnet/minecraft/component/type/ProfileComponent;getFuture()Ljava/util/concurrent/CompletableFuture;
-
createProfile
private static com.mojang.authlib.GameProfile createProfile(Optional<String> optional, Optional<UUID> id, com.mojang.authlib.properties.PropertyMap properties) - Mappings:
Namespace Name Mixin selector official aLcup;a(Ljava/util/Optional;Ljava/util/Optional;Lcom/mojang/authlib/properties/PropertyMap;)Lcom/mojang/authlib/GameProfile;intermediary method_57509Lnet/minecraft/class_9296;method_57509(Ljava/util/Optional;Ljava/util/Optional;Lcom/mojang/authlib/properties/PropertyMap;)Lcom/mojang/authlib/GameProfile;named createProfileLnet/minecraft/component/type/ProfileComponent;createProfile(Ljava/util/Optional;Ljava/util/Optional;Lcom/mojang/authlib/properties/PropertyMap;)Lcom/mojang/authlib/GameProfile;
-
isCompleted
public boolean isCompleted()- Mappings:
Namespace Name Mixin selector official bLcup;b()Zintermediary method_57511Lnet/minecraft/class_9296;method_57511()Znamed isCompletedLnet/minecraft/component/type/ProfileComponent;isCompleted()Z
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
properties
public com.mojang.authlib.properties.PropertyMap properties()Returns the value of thepropertiesrecord component.- Returns:
- the value of the
propertiesrecord component
-
gameProfile
public com.mojang.authlib.GameProfile gameProfile()Returns the value of thegameProfilerecord component.- Returns:
- the value of the
gameProfilerecord component
-