Record Class RpcMethodInfo
java.lang.Object
java.lang.Record
net.minecraft.server.dedicated.management.RpcMethodInfo
- Record Components:
description-params-result-
public record RpcMethodInfo(String description, Optional<RpcRequestParameter> params, Optional<RpcResponseResult> result)
extends Record
- Mappings:
Namespace Name named net/minecraft/server/dedicated/management/RpcMethodInfointermediary net/minecraft/class_11817official atsnamed descriptionintermediary comp_4681official cnamed paramsintermediary comp_4684official dnamed resultintermediary comp_4685official e
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.MapCodec<RpcMethodInfo> private final StringThe field for thedescriptionrecord component.static final com.mojang.serialization.Codec<Optional<RpcRequestParameter>> private final Optional<RpcRequestParameter> The field for theparamsrecord component.private final Optional<RpcResponseResult> The field for theresultrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionRpcMethodInfo(String string, Optional<RpcRequestParameter> optional, Optional<RpcResponseResult> optional2) RpcMethodInfo(String description, @Nullable RpcRequestParameter param, @Nullable RpcResponseResult 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.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. -
field_63112
- Mappings:
Namespace Name Mixin selector named field_63112Lnet/minecraft/server/dedicated/management/RpcMethodInfo;field_63112:Lcom/mojang/serialization/Codec;intermediary field_63112Lnet/minecraft/class_11817;field_63112:Lcom/mojang/serialization/Codec;official aLats;a:Lcom/mojang/serialization/Codec;
-
CODEC
- Mappings:
Namespace Name Mixin selector named CODECLnet/minecraft/server/dedicated/management/RpcMethodInfo;CODEC:Lcom/mojang/serialization/MapCodec;intermediary field_62342Lnet/minecraft/class_11817;field_62342:Lcom/mojang/serialization/MapCodec;official bLats;b:Lcom/mojang/serialization/MapCodec;
-
-
Constructor Details
-
RpcMethodInfo
public RpcMethodInfo(String description, @Nullable @Nullable RpcRequestParameter param, @Nullable @Nullable RpcResponseResult 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>Lats;<init>(Ljava/lang/String;Latt;Latw;)V
-
RpcMethodInfo
public RpcMethodInfo(String string, Optional<RpcRequestParameter> optional, Optional<RpcResponseResult> optional2)
-
-
Method Details
-
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 aLats;a(Lamj;)Lats$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
-