Package net.minecraft

Record Class class_8345

java.lang.Object
java.lang.Record
net.minecraft.class_8345
Record Components:
id -
name -
displayName -

public record class_8345(UUID id, String name, Text displayName) extends Record
Mappings:
Namespace Name
official bfs
intermediary net/minecraft/class_8345
named net/minecraft/class_8345
official b
intermediary comp_1354
named id
official c
intermediary comp_1355
named name
official d
intermediary comp_1356
named displayName
  • Field Details

    • id

      private final UUID id
      The field for the id record component.
    • name

      private final String name
      The field for the name record component.
    • displayName

      private final Text displayName
      The field for the displayName record component.
    • field_43918

      public static final com.mojang.serialization.Codec<class_8345> field_43918
      Mappings:
      Namespace Name Mixin selector
      official a Lbfs;a:Lcom/mojang/serialization/Codec;
      intermediary field_43918 Lnet/minecraft/class_8345;field_43918:Lcom/mojang/serialization/Codec;
      named field_43918 Lnet/minecraft/class_8345;field_43918:Lcom/mojang/serialization/Codec;
  • Constructor Details

    • class_8345

      public class_8345(UUID uUID, String string, Text text)
  • Method Details

    • method_50412

      public static class_8345 method_50412(ServerPlayerEntity serverPlayerEntity)
      Mappings:
      Namespace Name Mixin selector
      official a Lbfs;a(Lail;)Lbfs;
      intermediary method_50412 Lnet/minecraft/class_8345;method_50412(Lnet/minecraft/class_3222;)Lnet/minecraft/class_8345;
      named method_50412 Lnet/minecraft/class_8345;method_50412(Lnet/minecraft/server/network/ServerPlayerEntity;)Lnet/minecraft/class_8345;
    • method_50411

      public com.mojang.authlib.GameProfile method_50411()
      Mappings:
      Namespace Name Mixin selector
      official a Lbfs;a()Lcom/mojang/authlib/GameProfile;
      intermediary method_50411 Lnet/minecraft/class_8345;method_50411()Lcom/mojang/authlib/GameProfile;
      named method_50411 Lnet/minecraft/class_8345;method_50411()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.
    • id

      public UUID id()
      Returns the value of the id record component.
      Returns:
      the value of the id record component
    • name

      public String name()
      Returns the value of the name record component.
      Returns:
      the value of the name record component
    • displayName

      public Text displayName()
      Returns the value of the displayName record component.
      Returns:
      the value of the displayName record component