Record Class RpcMethodInfo

java.lang.Object
java.lang.Record
net.minecraft.server.dedicated.management.RpcMethodInfo
Record Components:
description -
params -
result -

public record RpcMethodInfo(String description, Optional<RpcRequestParameter> params, Optional<RpcResponseResult> result) extends Record
Mappings:
Namespace Name
named net/minecraft/server/dedicated/management/RpcMethodInfo
intermediary net/minecraft/class_11817
official ats
named description
intermediary comp_4681
official c
named params
intermediary comp_4684
official d
named result
intermediary comp_4685
official e
  • Field Details

    • description

      private final String description
      The field for the description record component.
    • params

      private final Optional<RpcRequestParameter> params
      The field for the params record component.
    • result

      private final Optional<RpcResponseResult> result
      The field for the result record component.
    • field_63112

      public static final com.mojang.serialization.Codec<Optional<RpcRequestParameter>> field_63112
      Mappings:
      Namespace Name Mixin selector
      named field_63112 Lnet/minecraft/server/dedicated/management/RpcMethodInfo;field_63112:Lcom/mojang/serialization/Codec;
      intermediary field_63112 Lnet/minecraft/class_11817;field_63112:Lcom/mojang/serialization/Codec;
      official a Lats;a:Lcom/mojang/serialization/Codec;
    • CODEC

      public static final com.mojang.serialization.MapCodec<RpcMethodInfo> CODEC
      Mappings:
      Namespace Name Mixin selector
      named CODEC Lnet/minecraft/server/dedicated/management/RpcMethodInfo;CODEC:Lcom/mojang/serialization/MapCodec;
      intermediary field_62342 Lnet/minecraft/class_11817;field_62342:Lcom/mojang/serialization/MapCodec;
      official b Lats;b:Lcom/mojang/serialization/MapCodec;
  • Constructor Details

    • RpcMethodInfo

      public RpcMethodInfo(String description, @Nullable @Nullable RpcRequestParameter param, @Nullable @Nullable RpcResponseResult result)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/server/dedicated/management/RpcMethodInfo;<init>(Ljava/lang/String;Lnet/minecraft/server/dedicated/management/RpcRequestParameter;Lnet/minecraft/server/dedicated/management/RpcResponseResult;)V
      intermediary <init> Lnet/minecraft/class_11817;<init>(Ljava/lang/String;Lnet/minecraft/class_11818;Lnet/minecraft/class_11820;)V
      official <init> Lats;<init>(Ljava/lang/String;Latt;Latw;)V
    • RpcMethodInfo

      public RpcMethodInfo(String string, Optional<RpcRequestParameter> optional, Optional<RpcResponseResult> optional2)
  • Method Details

    • toEntry

      public RpcMethodInfo.Entry toEntry(Identifier name)
      Mappings:
      Namespace Name Mixin selector
      named toEntry Lnet/minecraft/server/dedicated/management/RpcMethodInfo;toEntry(Lnet/minecraft/util/Identifier;)Lnet/minecraft/server/dedicated/management/RpcMethodInfo$Entry;
      intermediary method_74848 Lnet/minecraft/class_11817;method_74848(Lnet/minecraft/class_2960;)Lnet/minecraft/class_11817$class_12057;
      official a Lats;a(Lamj;)Lats$a;
    • 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.
    • description

      public String description()
      Returns the value of the description record component.
      Returns:
      the value of the description record component
    • params

      public Optional<RpcRequestParameter> params()
      Returns the value of the params record component.
      Returns:
      the value of the params record component
    • result

      public Optional<RpcResponseResult> result()
      Returns the value of the result record component.
      Returns:
      the value of the result record component