Package net.minecraft.component.type
Record Class ProfileComponent.Data
java.lang.Object
java.lang.Record
net.minecraft.component.type.ProfileComponent.Data
- Record Components:
name-id-properties-
- Enclosing class:
ProfileComponent
protected static record ProfileComponent.Data(Optional<String> name, Optional<UUID> id, com.mojang.authlib.properties.PropertyMap properties)
extends Record
- Mappings:
Namespace Name named net/minecraft/component/type/ProfileComponent$Dataintermediary net/minecraft/class_9296$class_11757official dkq$bnamed nameintermediary comp_4625official cnamed idintermediary comp_4626official dnamed propertiesintermediary comp_4627official e
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) static final com.mojang.serialization.MapCodec<ProfileComponent.Data> static final ProfileComponent.DataThe field for theidrecord component.The field for thenamerecord component.static final PacketCodec<ByteBuf, ProfileComponent.Data> private final com.mojang.authlib.properties.PropertyMapThe field for thepropertiesrecord component. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate com.mojang.authlib.GameProfilefinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.name()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. -
EMPTY
- Mappings:
Namespace Name Mixin selector named EMPTYLnet/minecraft/component/type/ProfileComponent$Data;EMPTY:Lnet/minecraft/component/type/ProfileComponent$Data;intermediary field_63032Lnet/minecraft/class_9296$class_11757;field_63032:Lnet/minecraft/class_9296$class_11757;official aLdkq$b;a:Ldkq$b;
-
CODEC
- Mappings:
Namespace Name Mixin selector named CODECLnet/minecraft/component/type/ProfileComponent$Data;CODEC:Lcom/mojang/serialization/MapCodec;intermediary field_63033Lnet/minecraft/class_9296$class_11757;field_63033:Lcom/mojang/serialization/MapCodec;official fLdkq$b;f:Lcom/mojang/serialization/MapCodec;
-
PACKET_CODEC
- Mappings:
Namespace Name Mixin selector named PACKET_CODECLnet/minecraft/component/type/ProfileComponent$Data;PACKET_CODEC:Lnet/minecraft/network/codec/PacketCodec;intermediary field_62075Lnet/minecraft/class_9296$class_11757;field_62075:Lnet/minecraft/class_9139;official bLdkq$b;b:Laae;
-
-
Constructor Details
-
Data
-
-
Method Details
-
createGameProfile
private com.mojang.authlib.GameProfile createGameProfile()- Mappings:
Namespace Name Mixin selector named createGameProfileLnet/minecraft/component/type/ProfileComponent$Data;createGameProfile()Lcom/mojang/authlib/GameProfile;intermediary method_73321Lnet/minecraft/class_9296$class_11757;method_73321()Lcom/mojang/authlib/GameProfile;official dLdkq$b;d()Lcom/mojang/authlib/GameProfile;
-
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
-