Record Class PlayerConfigEntry

java.lang.Object
java.lang.Record
net.minecraft.server.PlayerConfigEntry
Record Components:
id -
name -

public record PlayerConfigEntry(UUID id, String name) extends Record
Mappings:
Namespace Name
named net/minecraft/server/PlayerConfigEntry
intermediary net/minecraft/class_11560
official bbb
named id
intermediary comp_4422
official b
named name
intermediary comp_4423
official c
  • 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.
    • CODEC

      public static final com.mojang.serialization.Codec<PlayerConfigEntry> CODEC
      Mappings:
      Namespace Name Mixin selector
      named CODEC Lnet/minecraft/server/PlayerConfigEntry;CODEC:Lcom/mojang/serialization/Codec;
      intermediary field_62419 Lnet/minecraft/class_11560;field_62419:Lcom/mojang/serialization/Codec;
      official a Lbbb;a:Lcom/mojang/serialization/Codec;
  • Constructor Details

    • PlayerConfigEntry

      public PlayerConfigEntry(com.mojang.authlib.GameProfile profile)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/server/PlayerConfigEntry;<init>(Lcom/mojang/authlib/GameProfile;)V
      intermediary <init> Lnet/minecraft/class_11560;<init>(Lcom/mojang/authlib/GameProfile;)V
      official <init> Lbbb;<init>(Lcom/mojang/authlib/GameProfile;)V
    • PlayerConfigEntry

      public PlayerConfigEntry(com.mojang.authlib.yggdrasil.response.NameAndId nameAndId)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/server/PlayerConfigEntry;<init>(Lcom/mojang/authlib/yggdrasil/response/NameAndId;)V
      intermediary <init> Lnet/minecraft/class_11560;<init>(Lcom/mojang/authlib/yggdrasil/response/NameAndId;)V
      official <init> Lbbb;<init>(Lcom/mojang/authlib/yggdrasil/response/NameAndId;)V
    • PlayerConfigEntry

      public PlayerConfigEntry(UUID uUID, String string)
  • Method Details

    • read

      @Nullable public static @Nullable PlayerConfigEntry read(JsonObject object)
      Mappings:
      Namespace Name Mixin selector
      named read Lnet/minecraft/server/PlayerConfigEntry;read(Lcom/google/gson/JsonObject;)Lnet/minecraft/server/PlayerConfigEntry;
      intermediary method_72370 Lnet/minecraft/class_11560;method_72370(Lcom/google/gson/JsonObject;)Lnet/minecraft/class_11560;
      official a Lbbb;a(Lcom/google/gson/JsonObject;)Lbbb;
    • write

      public void write(JsonObject object)
      Mappings:
      Namespace Name Mixin selector
      named write Lnet/minecraft/server/PlayerConfigEntry;write(Lcom/google/gson/JsonObject;)V
      intermediary method_72372 Lnet/minecraft/class_11560;method_72372(Lcom/google/gson/JsonObject;)V
      official b Lbbb;b(Lcom/google/gson/JsonObject;)V
    • fromNickname

      public static PlayerConfigEntry fromNickname(String nickname)
      Mappings:
      Namespace Name Mixin selector
      named fromNickname Lnet/minecraft/server/PlayerConfigEntry;fromNickname(Ljava/lang/String;)Lnet/minecraft/server/PlayerConfigEntry;
      intermediary method_72371 Lnet/minecraft/class_11560;method_72371(Ljava/lang/String;)Lnet/minecraft/class_11560;
      official a Lbbb;a(Ljava/lang/String;)Lbbb;
    • 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