Record Class RpcDiscover.Document

java.lang.Object
java.lang.Record
net.minecraft.server.dedicated.management.RpcDiscover.Document
Record Components:
jsonRpcProtocolVersion -
discoverInfo -
methods -
components -
Enclosing class:
RpcDiscover

public static record RpcDiscover.Document(String jsonRpcProtocolVersion, RpcDiscover.Info discoverInfo, List<RpcMethodInfo.Entry> methods, RpcDiscover.Components components) extends Record
Mappings:
Namespace Name
named net/minecraft/server/dedicated/management/RpcDiscover$Document
intermediary net/minecraft/class_11839$class_11842
official auz$c
named jsonRpcProtocolVersion
intermediary comp_4715
official b
named discoverInfo
intermediary comp_4716
official c
named methods
intermediary comp_4717
official d
named components
intermediary comp_4718
official e
  • Field Details

    • jsonRpcProtocolVersion

      private final String jsonRpcProtocolVersion
      The field for the jsonRpcProtocolVersion record component.
    • discoverInfo

      private final RpcDiscover.Info discoverInfo
      The field for the discoverInfo record component.
    • methods

      private final List<RpcMethodInfo.Entry> methods
      The field for the methods record component.
    • components

      private final RpcDiscover.Components components
      The field for the components record component.
    • CODEC

      public static final com.mojang.serialization.MapCodec<RpcDiscover.Document> CODEC
      Mappings:
      Namespace Name Mixin selector
      named CODEC Lnet/minecraft/server/dedicated/management/RpcDiscover$Document;CODEC:Lcom/mojang/serialization/MapCodec;
      intermediary field_62398 Lnet/minecraft/class_11839$class_11842;field_62398:Lcom/mojang/serialization/MapCodec;
      official a Lauz$c;a:Lcom/mojang/serialization/MapCodec;
  • Constructor Details

  • Method Details

    • 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.
    • jsonRpcProtocolVersion

      public String jsonRpcProtocolVersion()
      Returns the value of the jsonRpcProtocolVersion record component.
      Returns:
      the value of the jsonRpcProtocolVersion record component
    • discoverInfo

      public RpcDiscover.Info discoverInfo()
      Returns the value of the discoverInfo record component.
      Returns:
      the value of the discoverInfo record component
    • methods

      public List<RpcMethodInfo.Entry> methods()
      Returns the value of the methods record component.
      Returns:
      the value of the methods record component
    • components

      public RpcDiscover.Components components()
      Returns the value of the components record component.
      Returns:
      the value of the components record component