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 auhnamed 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 TypeMethodDescriptionReturns the value of thedescriptionrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.private static <Params> Optional<RpcRequestParameter<Params>> method_75574(List<RpcRequestParameter<Params>> list) private static <Params> List<RpcRequestParameter<Params>> method_75575(Optional<RpcRequestParameter<Params>> optional) private static <Params> com.mojang.serialization.Codec<Optional<RpcRequestParameter<Params>>> (package private) static <Params,Result>
com.mojang.serialization.MapCodec<RpcMethodInfo<Params, Result>> params()Returns the value of theparamsrecord component.result()Returns the value of theresultrecord component.toEntry(Identifier name) 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 @Nullable RpcRequestParameter<Params> param, @Nullable @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>Lauh;<init>(Ljava/lang/String;Laui;Laul;)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
-
method_75574
private static <Params> Optional<RpcRequestParameter<Params>> method_75574(List<RpcRequestParameter<Params>> list) - Mappings:
Namespace Name Mixin selector named method_75574Lnet/minecraft/server/dedicated/management/RpcMethodInfo;method_75574(Ljava/util/List;)Ljava/util/Optional;intermediary method_75574Lnet/minecraft/class_11817;method_75574(Ljava/util/List;)Ljava/util/Optional;official aLauh;a(Ljava/util/List;)Ljava/util/Optional;
-
method_75575
private static <Params> List<RpcRequestParameter<Params>> method_75575(Optional<RpcRequestParameter<Params>> optional) - Mappings:
Namespace Name Mixin selector named method_75575Lnet/minecraft/server/dedicated/management/RpcMethodInfo;method_75575(Ljava/util/Optional;)Ljava/util/List;intermediary method_75575Lnet/minecraft/class_11817;method_75575(Ljava/util/Optional;)Ljava/util/List;official aLauh;a(Ljava/util/Optional;)Ljava/util/List;
-
method_75576
private static <Params> com.mojang.serialization.Codec<Optional<RpcRequestParameter<Params>>> method_75576()- Mappings:
Namespace Name Mixin selector named method_75576Lnet/minecraft/server/dedicated/management/RpcMethodInfo;method_75576()Lcom/mojang/serialization/Codec;intermediary method_75576Lnet/minecraft/class_11817;method_75576()Lcom/mojang/serialization/Codec;official dLauh;d()Lcom/mojang/serialization/Codec;
-
method_75577
static <Params,Result> com.mojang.serialization.MapCodec<RpcMethodInfo<Params,Result>> method_75577()- Mappings:
Namespace Name Mixin selector named method_75577Lnet/minecraft/server/dedicated/management/RpcMethodInfo;method_75577()Lcom/mojang/serialization/MapCodec;intermediary method_75577Lnet/minecraft/class_11817;method_75577()Lcom/mojang/serialization/MapCodec;official eLauh;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 aLauh;a(Lamy;)Lauh$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
-