Record Class ProfileComponent.class_11757

java.lang.Object
java.lang.Record
net.minecraft.component.type.ProfileComponent.class_11757
Record Components:
name -
id -
properties -
Enclosing class:
ProfileComponent

protected static record ProfileComponent.class_11757(Optional<String> name, Optional<UUID> id, com.mojang.authlib.properties.PropertyMap properties) extends Record
Mappings:
Namespace Name
named net/minecraft/component/type/ProfileComponent$class_11757
intermediary net/minecraft/class_9296$class_11757
official dhc$b
named name
intermediary comp_4625
official c
named id
intermediary comp_4626
official d
named properties
intermediary comp_4627
official e
  • Field Details

    • name

      private final Optional<String> name
      The field for the name record component.
    • id

      private final Optional<UUID> id
      The field for the id record component.
    • properties

      private final com.mojang.authlib.properties.PropertyMap properties
      The field for the properties record component.
    • field_62076

      private static final com.mojang.serialization.Codec<ProfileComponent.class_11757> field_62076
      Mappings:
      Namespace Name Mixin selector
      named field_62076 Lnet/minecraft/component/type/ProfileComponent$class_11757;field_62076:Lcom/mojang/serialization/Codec;
      intermediary field_62076 Lnet/minecraft/class_9296$class_11757;field_62076:Lcom/mojang/serialization/Codec;
      official f Ldhc$b;f:Lcom/mojang/serialization/Codec;
    • field_62074

      public static final com.mojang.serialization.Codec<ProfileComponent.class_11757> field_62074
      Mappings:
      Namespace Name Mixin selector
      named field_62074 Lnet/minecraft/component/type/ProfileComponent$class_11757;field_62074:Lcom/mojang/serialization/Codec;
      intermediary field_62074 Lnet/minecraft/class_9296$class_11757;field_62074:Lcom/mojang/serialization/Codec;
      official a Ldhc$b;a:Lcom/mojang/serialization/Codec;
    • field_62075

      public static final PacketCodec<ByteBuf,ProfileComponent.class_11757> field_62075
      Mappings:
      Namespace Name Mixin selector
      named field_62075 Lnet/minecraft/component/type/ProfileComponent$class_11757;field_62075:Lnet/minecraft/network/codec/PacketCodec;
      intermediary field_62075 Lnet/minecraft/class_9296$class_11757;field_62075:Lnet/minecraft/class_9139;
      official b Ldhc$b;b:Lzv;
  • Constructor Details

    • class_11757

      protected class_11757(Optional<String> optional, Optional<UUID> optional2, com.mojang.authlib.properties.PropertyMap propertyMap)
  • Method Details

    • method_73321

      private com.mojang.authlib.GameProfile method_73321()
      Mappings:
      Namespace Name Mixin selector
      named method_73321 Lnet/minecraft/component/type/ProfileComponent$class_11757;method_73321()Lcom/mojang/authlib/GameProfile;
      intermediary method_73321 Lnet/minecraft/class_9296$class_11757;method_73321()Lcom/mojang/authlib/GameProfile;
      official d Ldhc$b;d()Lcom/mojang/authlib/GameProfile;
    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object object)
      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 with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      object - the object with which to compare
      Returns:
      true if this object is the same as the object argument; false otherwise.
    • name

      public Optional<String> name()
      Returns the value of the name record component.
      Returns:
      the value of the name record component
    • id

      public Optional<UUID> id()
      Returns the value of the id record component.
      Returns:
      the value of the id record component
    • properties

      public com.mojang.authlib.properties.PropertyMap properties()
      Returns the value of the properties record component.
      Returns:
      the value of the properties record component