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/RpcMethodInfointermediary net/minecraft/class_11817official aucnamed descriptionintermediary comp_4681official anamed paramsintermediary comp_4684official bnamed resultintermediary comp_4685official c
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final StringThe field for thedescriptionrecord component.private final Optional<RpcRequestParameter<Params>> The field for theparamsrecord component.private final Optional<RpcResponseResult<Result>> The field for theresultrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionRpcMethodInfo(String description, Optional<RpcRequestParameter<Params>> params, Optional<RpcResponseResult<Result>> result) Creates an instance of aRpcMethodInforecord class.RpcMethodInfo(String description, @Nullable RpcRequestParameter<Params> param, @Nullable RpcResponseResult<Result> result) -
Method Summary
Modifier and TypeMethodDescription(package private) static <Params,Result>
com.mojang.serialization.MapCodec<RpcMethodInfo<Params, Result>> private static <Params> com.mojang.serialization.Codec<Optional<RpcRequestParameter<Params>>> Returns the value of thedescriptionrecord component.final booleanIndicates whether some other object is "equal to" this one.private static <Params> Optional<RpcRequestParameter<Params>> getParameter(List<RpcRequestParameter<Params>> params) final inthashCode()Returns a hash code value for this object.params()Returns the value of theparamsrecord component.result()Returns the value of theresultrecord component.toEntry(Identifier name) private static <Params> List<RpcRequestParameter<Params>> toParameterList(Optional<RpcRequestParameter<Params>> param) final StringtoString()Returns a string representation of this record class.
-
Field Details
-
description
The field for thedescriptionrecord component. -
params
The field for theparamsrecord component. -
result
The field for theresultrecord component.
-
-
Constructor Details
-
RpcMethodInfo
public RpcMethodInfo(String description, @Nullable RpcRequestParameter<Params> param, @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;)Vintermediary <init>Lnet/minecraft/class_11817;<init>(Ljava/lang/String;Lnet/minecraft/class_11818;Lnet/minecraft/class_11820;)Vofficial <init>Lauc;<init>(Ljava/lang/String;Laud;Laug;)V
-
RpcMethodInfo
public RpcMethodInfo(String description, Optional<RpcRequestParameter<Params>> params, Optional<RpcResponseResult<Result>> result) Creates an instance of aRpcMethodInforecord class.- Parameters:
description- the value for thedescriptionrecord componentparams- the value for theparamsrecord componentresult- the value for theresultrecord component
-
-
Method Details
-
getParameter
private static <Params> Optional<RpcRequestParameter<Params>> getParameter(List<RpcRequestParameter<Params>> params) - Mappings:
Namespace Name Mixin selector named getParameterLnet/minecraft/server/dedicated/management/RpcMethodInfo;getParameter(Ljava/util/List;)Ljava/util/Optional;intermediary method_75574Lnet/minecraft/class_11817;method_75574(Ljava/util/List;)Ljava/util/Optional;official aLauc;a(Ljava/util/List;)Ljava/util/Optional;
-
toParameterList
private static <Params> List<RpcRequestParameter<Params>> toParameterList(Optional<RpcRequestParameter<Params>> param) - Mappings:
Namespace Name Mixin selector named toParameterListLnet/minecraft/server/dedicated/management/RpcMethodInfo;toParameterList(Ljava/util/Optional;)Ljava/util/List;intermediary method_75575Lnet/minecraft/class_11817;method_75575(Ljava/util/Optional;)Ljava/util/List;official aLauc;a(Ljava/util/Optional;)Ljava/util/List;
-
createParamsCodec
private static <Params> com.mojang.serialization.Codec<Optional<RpcRequestParameter<Params>>> createParamsCodec()- Mappings:
Namespace Name Mixin selector named createParamsCodecLnet/minecraft/server/dedicated/management/RpcMethodInfo;createParamsCodec()Lcom/mojang/serialization/Codec;intermediary method_75576Lnet/minecraft/class_11817;method_75576()Lcom/mojang/serialization/Codec;official dLauc;d()Lcom/mojang/serialization/Codec;
-
createCodec
static <Params,Result> com.mojang.serialization.MapCodec<RpcMethodInfo<Params,Result>> createCodec()- Mappings:
Namespace Name Mixin selector named createCodecLnet/minecraft/server/dedicated/management/RpcMethodInfo;createCodec()Lcom/mojang/serialization/MapCodec;intermediary method_75577Lnet/minecraft/class_11817;method_75577()Lcom/mojang/serialization/MapCodec;official eLauc;e()Lcom/mojang/serialization/MapCodec;
-
toEntry
- Mappings:
Namespace Name Mixin selector named toEntryLnet/minecraft/server/dedicated/management/RpcMethodInfo;toEntry(Lnet/minecraft/util/Identifier;)Lnet/minecraft/server/dedicated/management/RpcMethodInfo$Entry;intermediary method_74848Lnet/minecraft/class_11817;method_74848(Lnet/minecraft/class_2960;)Lnet/minecraft/class_11817$class_12057;official aLauc;a(Lamo;)Lauc$a;
-
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. -
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. -
equals
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 withObjects::equals(Object,Object). -
description
Returns the value of thedescriptionrecord component.- Returns:
- the value of the
descriptionrecord component
-
params
Returns the value of theparamsrecord component.- Returns:
- the value of the
paramsrecord component
-
result
Returns the value of theresultrecord component.- Returns:
- the value of the
resultrecord component
-