Record Class RpcMethodInfo<Params,Result>

java.lang.Object
java.lang.Record
net.minecraft.server.dedicated.management.RpcMethodInfo<Params,Result>
Record Components:
description -
params -
result -

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

  • Constructor Details

    • RpcMethodInfo

      public RpcMethodInfo(String description, @Nullable @Nullable RpcRequestParameter<Params> param, @Nullable @Nullable RpcResponseResult<Result> 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> Lauh;<init>(Ljava/lang/String;Laui;Laul;)V
    • RpcMethodInfo

      public RpcMethodInfo(String description, Optional<RpcRequestParameter<Params>> params, Optional<RpcResponseResult<Result>> result)
      Creates an instance of a RpcMethodInfo record class.
      Parameters:
      description - the value for the description record component
      params - the value for the params record component
      result - the value for the result record component
  • Method Details

    • method_75574

      private static <Params> Optional<RpcRequestParameter<Params>> method_75574(List<RpcRequestParameter<Params>> list)
      Mappings:
      Namespace Name Mixin selector
      named method_75574 Lnet/minecraft/server/dedicated/management/RpcMethodInfo;method_75574(Ljava/util/List;)Ljava/util/Optional;
      intermediary method_75574 Lnet/minecraft/class_11817;method_75574(Ljava/util/List;)Ljava/util/Optional;
      official a Lauh;a(Ljava/util/List;)Ljava/util/Optional;
    • method_75575

      private static <Params> List<RpcRequestParameter<Params>> method_75575(Optional<RpcRequestParameter<Params>> optional)
      Mappings:
      Namespace Name Mixin selector
      named method_75575 Lnet/minecraft/server/dedicated/management/RpcMethodInfo;method_75575(Ljava/util/Optional;)Ljava/util/List;
      intermediary method_75575 Lnet/minecraft/class_11817;method_75575(Ljava/util/Optional;)Ljava/util/List;
      official a Lauh;a(Ljava/util/Optional;)Ljava/util/List;
    • method_75576

      private static <Params> com.mojang.serialization.Codec<Optional<RpcRequestParameter<Params>>> method_75576()
      Mappings:
      Namespace Name Mixin selector
      named method_75576 Lnet/minecraft/server/dedicated/management/RpcMethodInfo;method_75576()Lcom/mojang/serialization/Codec;
      intermediary method_75576 Lnet/minecraft/class_11817;method_75576()Lcom/mojang/serialization/Codec;
      official d Lauh;d()Lcom/mojang/serialization/Codec;
    • method_75577

      static <Params, Result> com.mojang.serialization.MapCodec<RpcMethodInfo<Params,Result>> method_75577()
      Mappings:
      Namespace Name Mixin selector
      named method_75577 Lnet/minecraft/server/dedicated/management/RpcMethodInfo;method_75577()Lcom/mojang/serialization/MapCodec;
      intermediary method_75577 Lnet/minecraft/class_11817;method_75577()Lcom/mojang/serialization/MapCodec;
      official e Lauh;e()Lcom/mojang/serialization/MapCodec;
    • toEntry

      public RpcMethodInfo.Entry<Params,Result> 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 Lauh;a(Lamy;)Lauh$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>> params()
      Returns the value of the params record component.
      Returns:
      the value of the params record component
    • result

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