Record Class RpcPlayer

java.lang.Object
java.lang.Record
net.minecraft.server.dedicated.management.RpcPlayer
Record Components:
id -
name -

public record RpcPlayer(Optional<UUID> id, Optional<String> name) extends Record
Mappings:
Namespace Name
named net/minecraft/server/dedicated/management/RpcPlayer
intermediary net/minecraft/class_11819
official atu
named id
intermediary comp_4689
official b
named name
intermediary comp_4690
official c
  • Field Details

    • id

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

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

      public static final com.mojang.serialization.MapCodec<RpcPlayer> CODEC
      Mappings:
      Namespace Name Mixin selector
      named CODEC Lnet/minecraft/server/dedicated/management/RpcPlayer;CODEC:Lcom/mojang/serialization/MapCodec;
      intermediary field_62344 Lnet/minecraft/class_11819;field_62344:Lcom/mojang/serialization/MapCodec;
      official a Latu;a:Lcom/mojang/serialization/MapCodec;
  • Constructor Details

  • Method Details

    • of

      public static RpcPlayer of(com.mojang.authlib.GameProfile profile)
      Mappings:
      Namespace Name Mixin selector
      named of Lnet/minecraft/server/dedicated/management/RpcPlayer;of(Lcom/mojang/authlib/GameProfile;)Lnet/minecraft/server/dedicated/management/RpcPlayer;
      intermediary method_73710 Lnet/minecraft/class_11819;method_73710(Lcom/mojang/authlib/GameProfile;)Lnet/minecraft/class_11819;
      official a Latu;a(Lcom/mojang/authlib/GameProfile;)Latu;
    • of

      public static RpcPlayer of(PlayerConfigEntry player)
      Mappings:
      Namespace Name Mixin selector
      named of Lnet/minecraft/server/dedicated/management/RpcPlayer;of(Lnet/minecraft/server/PlayerConfigEntry;)Lnet/minecraft/server/dedicated/management/RpcPlayer;
      intermediary method_73709 Lnet/minecraft/class_11819;method_73709(Lnet/minecraft/class_11560;)Lnet/minecraft/class_11819;
      official a Latu;a(Lbbb;)Latu;
    • of

      public static RpcPlayer of(ServerPlayerEntity player)
      Mappings:
      Namespace Name Mixin selector
      named of Lnet/minecraft/server/dedicated/management/RpcPlayer;of(Lnet/minecraft/server/network/ServerPlayerEntity;)Lnet/minecraft/server/dedicated/management/RpcPlayer;
      intermediary method_73708 Lnet/minecraft/class_11819;method_73708(Lnet/minecraft/class_3222;)Lnet/minecraft/class_11819;
      official a Latu;a(Lawy;)Latu;
    • 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 Optional<UUID> id()
      Returns the value of the id record component.
      Returns:
      the value of the id record component
    • name

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