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 cvz
intermediary net/minecraft/class_9296
named net/minecraft/component/type/ProfileComponent
official c
intermediary comp_2410
named name
official d
intermediary comp_2411
named id
official e
intermediary comp_2412
named properties
official f
intermediary comp_2413
named gameProfile
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final com.mojang.serialization.Codec
<ProfileComponent> static final com.mojang.serialization.Codec
<ProfileComponent> private final com.mojang.authlib.GameProfile
The field for thegameProfile
record component.The field for theid
record component.The field for thename
record component.static final PacketCodec
<ByteBuf, ProfileComponent> private final com.mojang.authlib.properties.PropertyMap
The field for theproperties
record component. -
Constructor Summary
ConstructorsConstructorDescriptionProfileComponent
(com.mojang.authlib.GameProfile gameProfile) ProfileComponent
(Optional<String> name, 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.GameProfile
createProfile
(Optional<String> name, Optional<UUID> id, com.mojang.authlib.properties.PropertyMap properties) final boolean
Indicates whether some other object is "equal to" this one.com.mojang.authlib.GameProfile
Returns the value of thegameProfile
record component.final int
hashCode()
Returns a hash code value for this object.id()
Returns the value of theid
record component.boolean
name()
Returns the value of thename
record component.com.mojang.authlib.properties.PropertyMap
Returns the value of theproperties
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
name
The field for thename
record component. -
id
The field for theid
record component. -
properties
private final com.mojang.authlib.properties.PropertyMap propertiesThe field for theproperties
record component. -
gameProfile
private final com.mojang.authlib.GameProfile gameProfileThe field for thegameProfile
record component. -
BASE_CODEC
- Mappings:
Namespace Name Mixin selector official g
Lcvz;g:Lcom/mojang/serialization/Codec;
intermediary field_49752
Lnet/minecraft/class_9296;field_49752:Lcom/mojang/serialization/Codec;
named BASE_CODEC
Lnet/minecraft/component/type/ProfileComponent;BASE_CODEC:Lcom/mojang/serialization/Codec;
-
CODEC
- Mappings:
Namespace Name Mixin selector official a
Lcvz;a:Lcom/mojang/serialization/Codec;
intermediary field_49359
Lnet/minecraft/class_9296;field_49359:Lcom/mojang/serialization/Codec;
named CODEC
Lnet/minecraft/component/type/ProfileComponent;CODEC:Lcom/mojang/serialization/Codec;
-
PACKET_CODEC
- Mappings:
Namespace Name Mixin selector official b
Lcvz;b:Lys;
intermediary field_49360
Lnet/minecraft/class_9296;field_49360:Lnet/minecraft/class_9139;
named PACKET_CODEC
Lnet/minecraft/component/type/ProfileComponent;PACKET_CODEC:Lnet/minecraft/network/codec/PacketCodec;
-
-
Constructor Details
-
ProfileComponent
public ProfileComponent(Optional<String> name, Optional<UUID> id, com.mojang.authlib.properties.PropertyMap properties) - Mappings:
Namespace Name Mixin selector official <init>
Lcvz;<init>(Ljava/util/Optional;Ljava/util/Optional;Lcom/mojang/authlib/properties/PropertyMap;)V
intermediary <init>
Lnet/minecraft/class_9296;<init>(Ljava/util/Optional;Ljava/util/Optional;Lcom/mojang/authlib/properties/PropertyMap;)V
named <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>
Lcvz;<init>(Lcom/mojang/authlib/GameProfile;)V
intermediary <init>
Lnet/minecraft/class_9296;<init>(Lcom/mojang/authlib/GameProfile;)V
named <init>
Lnet/minecraft/component/type/ProfileComponent;<init>(Lcom/mojang/authlib/GameProfile;)V
-
ProfileComponent
-
-
Method Details
-
getFuture
- Mappings:
Namespace Name Mixin selector official a
Lcvz;a()Ljava/util/concurrent/CompletableFuture;
intermediary method_57507
Lnet/minecraft/class_9296;method_57507()Ljava/util/concurrent/CompletableFuture;
named getFuture
Lnet/minecraft/component/type/ProfileComponent;getFuture()Ljava/util/concurrent/CompletableFuture;
-
createProfile
private static com.mojang.authlib.GameProfile createProfile(Optional<String> name, Optional<UUID> id, com.mojang.authlib.properties.PropertyMap properties) - Mappings:
Namespace Name Mixin selector official a
Lcvz;a(Ljava/util/Optional;Ljava/util/Optional;Lcom/mojang/authlib/properties/PropertyMap;)Lcom/mojang/authlib/GameProfile;
intermediary method_57509
Lnet/minecraft/class_9296;method_57509(Ljava/util/Optional;Ljava/util/Optional;Lcom/mojang/authlib/properties/PropertyMap;)Lcom/mojang/authlib/GameProfile;
named createProfile
Lnet/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 b
Lcvz;b()Z
intermediary method_57511
Lnet/minecraft/class_9296;method_57511()Z
named isCompleted
Lnet/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 thename
record component.- Returns:
- the value of the
name
record component
-
id
Returns the value of theid
record component.- Returns:
- the value of the
id
record component
-
properties
public com.mojang.authlib.properties.PropertyMap properties()Returns the value of theproperties
record component.- Returns:
- the value of the
properties
record component
-
gameProfile
public com.mojang.authlib.GameProfile gameProfile()Returns the value of thegameProfile
record component.- Returns:
- the value of the
gameProfile
record component
-