Package net.minecraft.component.type
Record Class ProfileComponent
java.lang.Object
java.lang.Record
net.minecraft.component.type.ProfileComponent
- Record Components:
name-uuid-properties-gameProfile-
public record ProfileComponent(Optional<String> name, Optional<UUID> uuid, com.mojang.authlib.properties.PropertyMap properties, com.mojang.authlib.GameProfile gameProfile)
extends Record
- Mappings:
Namespace Name named net/minecraft/component/type/ProfileComponentintermediary net/minecraft/class_9296official dgunamed nameintermediary comp_2410official dnamed uuidintermediary comp_2411official enamed propertiesintermediary comp_2412official fnamed gameProfileintermediary comp_2413official g
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final com.mojang.serialization.Codec<ProfileComponent> static final com.mojang.serialization.Codec<ProfileComponent> static final Executorprivate static @Nullable ProfileComponent.class_11579private final com.mojang.authlib.GameProfileThe field for thegameProfilerecord component.The field for thenamerecord component.static final PacketCodec<ByteBuf, ProfileComponent> private final com.mojang.authlib.properties.PropertyMapThe field for thepropertiesrecord component.The field for theuuidrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionProfileComponent(com.mojang.authlib.GameProfile gameProfile) ProfileComponent(Optional<String> name, Optional<UUID> uuid, 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<UUID> uuid, Optional<String> name) private static com.mojang.authlib.GameProfilecreateProfile(Optional<UUID> uuid, Optional<String> name, 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.booleanstatic voidmethod_72519(ApiServices apiServices, Executor executor) static voidprivate CompletableFuture<Optional<com.mojang.authlib.GameProfile>> name()Returns the value of thenamerecord component.com.mojang.authlib.properties.PropertyMapReturns the value of thepropertiesrecord component.resolve()private ProfileComponentfinal StringtoString()Returns a string representation of this record class.uuid()Returns the value of theuuidrecord component.
-
Field Details
-
name
The field for thenamerecord component. -
uuid
The field for theuuidrecord 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_61353
- Mappings:
Namespace Name Mixin selector named field_61353Lnet/minecraft/component/type/ProfileComponent;field_61353:Lnet/minecraft/component/type/ProfileComponent$class_11579;intermediary field_61353Lnet/minecraft/class_9296;field_61353:Lnet/minecraft/class_9296$class_11579;official hLdgu;h:Ldgu$a;
-
field_61354
- Mappings:
Namespace Name Mixin selector named field_61354Lnet/minecraft/component/type/ProfileComponent;field_61354:Ljava/util/concurrent/Executor;intermediary field_61354Lnet/minecraft/class_9296;field_61354:Ljava/util/concurrent/Executor;official iLdgu;i:Ljava/util/concurrent/Executor;
-
field_61352
- Mappings:
Namespace Name Mixin selector named field_61352Lnet/minecraft/component/type/ProfileComponent;field_61352:Ljava/util/concurrent/Executor;intermediary field_61352Lnet/minecraft/class_9296;field_61352:Ljava/util/concurrent/Executor;official aLdgu;a:Ljava/util/concurrent/Executor;
-
BASE_CODEC
- Mappings:
Namespace Name Mixin selector named BASE_CODECLnet/minecraft/component/type/ProfileComponent;BASE_CODEC:Lcom/mojang/serialization/Codec;intermediary field_49752Lnet/minecraft/class_9296;field_49752:Lcom/mojang/serialization/Codec;official jLdgu;j:Lcom/mojang/serialization/Codec;
-
CODEC
- Mappings:
Namespace Name Mixin selector named CODECLnet/minecraft/component/type/ProfileComponent;CODEC:Lcom/mojang/serialization/Codec;intermediary field_49359Lnet/minecraft/class_9296;field_49359:Lcom/mojang/serialization/Codec;official bLdgu;b:Lcom/mojang/serialization/Codec;
-
PACKET_CODEC
- Mappings:
Namespace Name Mixin selector named PACKET_CODECLnet/minecraft/component/type/ProfileComponent;PACKET_CODEC:Lnet/minecraft/network/codec/PacketCodec;intermediary field_49360Lnet/minecraft/class_9296;field_49360:Lnet/minecraft/class_9139;official cLdgu;c:Lzt;
-
-
Constructor Details
-
ProfileComponent
public ProfileComponent(Optional<String> name, Optional<UUID> uuid, com.mojang.authlib.properties.PropertyMap properties) - Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/component/type/ProfileComponent;<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;)Vofficial <init>Ldgu;<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 named <init>Lnet/minecraft/component/type/ProfileComponent;<init>(Lcom/mojang/authlib/GameProfile;)Vintermediary <init>Lnet/minecraft/class_9296;<init>(Lcom/mojang/authlib/GameProfile;)Vofficial <init>Ldgu;<init>(Lcom/mojang/authlib/GameProfile;)V
-
ProfileComponent
-
-
Method Details
-
resolve
- Mappings:
Namespace Name Mixin selector named resolveLnet/minecraft/component/type/ProfileComponent;resolve()Lnet/minecraft/component/type/ProfileComponent;intermediary method_72087Lnet/minecraft/class_9296;method_72087()Lnet/minecraft/class_9296;official aLdgu;a()Ldgu;
-
getFuture
- Mappings:
Namespace Name Mixin selector named getFutureLnet/minecraft/component/type/ProfileComponent;getFuture()Ljava/util/concurrent/CompletableFuture;intermediary method_57507Lnet/minecraft/class_9296;method_57507()Ljava/util/concurrent/CompletableFuture;official bLdgu;b()Ljava/util/concurrent/CompletableFuture;
-
method_72522
- Mappings:
Namespace Name Mixin selector named method_72522Lnet/minecraft/component/type/ProfileComponent;method_72522()Ljava/util/concurrent/CompletableFuture;intermediary method_72522Lnet/minecraft/class_9296;method_72522()Ljava/util/concurrent/CompletableFuture;official iLdgu;i()Ljava/util/concurrent/CompletableFuture;
-
resolve
- Mappings:
Namespace Name Mixin selector named resolveLnet/minecraft/component/type/ProfileComponent;resolve(Ljava/util/Optional;)Lnet/minecraft/component/type/ProfileComponent;intermediary method_72088Lnet/minecraft/class_9296;method_72088(Ljava/util/Optional;)Lnet/minecraft/class_9296;official aLdgu;a(Ljava/util/Optional;)Ldgu;
-
createProfile
private static com.mojang.authlib.GameProfile createProfile(Optional<UUID> uuid, Optional<String> name) - Mappings:
Namespace Name Mixin selector named createProfileLnet/minecraft/component/type/ProfileComponent;createProfile(Ljava/util/Optional;Ljava/util/Optional;)Lcom/mojang/authlib/GameProfile;intermediary method_72089Lnet/minecraft/class_9296;method_72089(Ljava/util/Optional;Ljava/util/Optional;)Lcom/mojang/authlib/GameProfile;official aLdgu;a(Ljava/util/Optional;Ljava/util/Optional;)Lcom/mojang/authlib/GameProfile;
-
createProfile
private static com.mojang.authlib.GameProfile createProfile(Optional<UUID> uuid, Optional<String> name, com.mojang.authlib.properties.PropertyMap properties) - Mappings:
Namespace Name Mixin selector named createProfileLnet/minecraft/component/type/ProfileComponent;createProfile(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;official aLdgu;a(Ljava/util/Optional;Ljava/util/Optional;Lcom/mojang/authlib/properties/PropertyMap;)Lcom/mojang/authlib/GameProfile;
-
isCompleted
public boolean isCompleted()- Mappings:
Namespace Name Mixin selector named isCompletedLnet/minecraft/component/type/ProfileComponent;isCompleted()Zintermediary method_57511Lnet/minecraft/class_9296;method_57511()Zofficial cLdgu;c()Z
-
method_72519
- Mappings:
Namespace Name Mixin selector named method_72519Lnet/minecraft/component/type/ProfileComponent;method_72519(Lnet/minecraft/util/ApiServices;Ljava/util/concurrent/Executor;)Vintermediary method_72519Lnet/minecraft/class_9296;method_72519(Lnet/minecraft/class_7497;Ljava/util/concurrent/Executor;)Vofficial aLdgu;a(Lang;Ljava/util/concurrent/Executor;)V
-
method_72521
public static void method_72521()- Mappings:
Namespace Name Mixin selector named method_72521Lnet/minecraft/component/type/ProfileComponent;method_72521()Vintermediary method_72521Lnet/minecraft/class_9296;method_72521()Vofficial dLdgu;d()V
-
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
-
uuid
Returns the value of theuuidrecord component.- Returns:
- the value of the
uuidrecord 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
-