Record Class IncomingRpcMethod.Parameterless<Result>

java.lang.Object
java.lang.Record
net.minecraft.server.dedicated.management.IncomingRpcMethod.Parameterless<Result>
Record Components:
info -
attributes -
resultCodec -
handler -
All Implemented Interfaces:
IncomingRpcMethod
Enclosing interface:
IncomingRpcMethod

public static record IncomingRpcMethod.Parameterless<Result>(RpcMethodInfo info, IncomingRpcMethod.Attributes attributes, com.mojang.serialization.Codec<Result> resultCodec, IncomingRpcMethod.ParameterlessHandler<Result> handler) extends Record implements IncomingRpcMethod
Mappings:
Namespace Name
named net/minecraft/server/dedicated/management/IncomingRpcMethod$Parameterless
intermediary net/minecraft/class_11796$class_11799
official ati$e
named info
intermediary comp_4662
official a
named attributes
intermediary comp_4907
official b
named resultCodec
intermediary comp_4666
official c
named handler
intermediary comp_4667
official d
  • Field Details

  • Constructor Details

  • Method Details

    • handle

      Specified by:
      handle in interface IncomingRpcMethod
      Mappings:
      Namespace Name Mixin selector
      named handle Lnet/minecraft/server/dedicated/management/IncomingRpcMethod;handle(Lnet/minecraft/server/dedicated/management/dispatch/ManagementHandlerDispatcher;Lcom/google/gson/JsonElement;Lnet/minecraft/server/dedicated/management/network/ManagementConnectionId;)Lcom/google/gson/JsonElement;
      intermediary method_73621 Lnet/minecraft/class_11796;method_73621(Lnet/minecraft/class_11827;Lcom/google/gson/JsonElement;Lnet/minecraft/class_11838;)Lcom/google/gson/JsonElement;
      official a Lati;a(Lauf;Lcom/google/gson/JsonElement;Lauy;)Lcom/google/gson/JsonElement;
    • 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.
    • info

      public RpcMethodInfo info()
      Returns the value of the info record component.
      Specified by:
      info in interface IncomingRpcMethod
      Returns:
      the value of the info record component
    • attributes

      public IncomingRpcMethod.Attributes attributes()
      Returns the value of the attributes record component.
      Specified by:
      attributes in interface IncomingRpcMethod
      Returns:
      the value of the attributes record component
    • resultCodec

      public com.mojang.serialization.Codec<Result> resultCodec()
      Returns the value of the resultCodec record component.
      Returns:
      the value of the resultCodec record component
    • handler

      Returns the value of the handler record component.
      Returns:
      the value of the handler record component