Record Class OutgoingRpcMethod.Parameterless<Result>

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

public static record OutgoingRpcMethod.Parameterless<Result>(RpcMethodInfo info, OutgoingRpcMethod.Attributes attributes, com.mojang.serialization.Codec<Result> resultCodec) extends Record implements OutgoingRpcMethod<Void,Result>
Mappings:
Namespace Name
named net/minecraft/server/dedicated/management/OutgoingRpcMethod$Parameterless
intermediary net/minecraft/class_11808$class_11812
official atp$f
named info
intermediary comp_4668
official b
named attributes
intermediary comp_4909
official c
named resultCodec
intermediary comp_4672
official d
  • Field Details

  • Constructor Details

  • Method Details

    • decodeResult

      public Result decodeResult(JsonElement result)
      Specified by:
      decodeResult in interface OutgoingRpcMethod<Void,Result>
      Mappings:
      Namespace Name Mixin selector
      named decodeResult Lnet/minecraft/server/dedicated/management/OutgoingRpcMethod;decodeResult(Lcom/google/gson/JsonElement;)Ljava/lang/Object;
      intermediary method_73682 Lnet/minecraft/class_11808;method_73682(Lcom/google/gson/JsonElement;)Ljava/lang/Object;
      official a Latp;a(Lcom/google/gson/JsonElement;)Ljava/lang/Object;
    • 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 OutgoingRpcMethod<Void,Result>
      Returns:
      the value of the info record component
    • attributes

      public OutgoingRpcMethod.Attributes attributes()
      Returns the value of the attributes record component.
      Specified by:
      attributes in interface OutgoingRpcMethod<Void,Result>
      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