Record Class RpcMethodInfo

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

public record RpcMethodInfo(Identifier name, String description, boolean runOnMainThread, boolean discoverable, List<RpcRequestParameter> params, Optional<RpcResponseResult> result) extends Record
Mappings:
Namespace Name
named net/minecraft/server/dedicated/management/RpcMethodInfo
intermediary net/minecraft/class_11817
official att
named name
intermediary comp_4680
official b
named description
intermediary comp_4681
official c
named runOnMainThread
intermediary comp_4682
official d
named discoverable
intermediary comp_4683
official e
named params
intermediary comp_4684
official f
named result
intermediary comp_4685
official g
  • Field Details

    • name

      private final Identifier name
      The field for the name record component.
    • description

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

      private final boolean runOnMainThread
      The field for the runOnMainThread record component.
    • discoverable

      private final boolean discoverable
      The field for the discoverable record component.
    • params

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

      private final Optional<RpcResponseResult> result
      The field for the result record component.
    • 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 a Latt;a:Lcom/mojang/serialization/MapCodec;
  • Constructor Details

    • RpcMethodInfo

      public RpcMethodInfo(Identifier name, String description, boolean discoverable, boolean runOnMainThread)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/server/dedicated/management/RpcMethodInfo;<init>(Lnet/minecraft/util/Identifier;Ljava/lang/String;ZZ)V
      intermediary <init> Lnet/minecraft/class_11817;<init>(Lnet/minecraft/class_2960;Ljava/lang/String;ZZ)V
      official <init> Latt;<init>(Lamj;Ljava/lang/String;ZZ)V
    • RpcMethodInfo

      public RpcMethodInfo(Identifier name, String description, List<RpcRequestParameter> params, Optional<RpcResponseResult> result)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/server/dedicated/management/RpcMethodInfo;<init>(Lnet/minecraft/util/Identifier;Ljava/lang/String;Ljava/util/List;Ljava/util/Optional;)V
      intermediary <init> Lnet/minecraft/class_11817;<init>(Lnet/minecraft/class_2960;Ljava/lang/String;Ljava/util/List;Ljava/util/Optional;)V
      official <init> Latt;<init>(Lamj;Ljava/lang/String;Ljava/util/List;Ljava/util/Optional;)V
    • RpcMethodInfo

      public RpcMethodInfo(Identifier identifier, String string, boolean bool, boolean bool2, List<RpcRequestParameter> list, Optional<RpcResponseResult> optional)
  • Method Details

    • withParams

      public RpcMethodInfo withParams(RpcRequestParameter[] params)
      Mappings:
      Namespace Name Mixin selector
      named withParams Lnet/minecraft/server/dedicated/management/RpcMethodInfo;withParams([Lnet/minecraft/server/dedicated/management/RpcRequestParameter;)Lnet/minecraft/server/dedicated/management/RpcMethodInfo;
      intermediary method_73706 Lnet/minecraft/class_11817;method_73706([Lnet/minecraft/class_11818;)Lnet/minecraft/class_11817;
      official a Latt;a([Latu;)Latt;
    • withResult

      public RpcMethodInfo withResult(RpcResponseResult result)
      Mappings:
      Namespace Name Mixin selector
      named withResult Lnet/minecraft/server/dedicated/management/RpcMethodInfo;withResult(Lnet/minecraft/server/dedicated/management/RpcResponseResult;)Lnet/minecraft/server/dedicated/management/RpcMethodInfo;
      intermediary method_73704 Lnet/minecraft/class_11817;method_73704(Lnet/minecraft/class_11820;)Lnet/minecraft/class_11817;
      official a Latt;a(Latw;)Latt;
    • 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. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with '=='.
      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.
    • name

      public Identifier name()
      Returns the value of the name record component.
      Returns:
      the value of the name record component
    • description

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

      public boolean runOnMainThread()
      Returns the value of the runOnMainThread record component.
      Returns:
      the value of the runOnMainThread record component
    • discoverable

      public boolean discoverable()
      Returns the value of the discoverable record component.
      Returns:
      the value of the discoverable record component
    • params

      public List<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