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, List<RpcRequestParameter> params, Optional<RpcResponseResult> result)
extends Record
- Mappings:
Namespace Name named net/minecraft/server/dedicated/management/RpcMethodInfointermediary net/minecraft/class_11817official attnamed descriptionintermediary comp_4681official bnamed paramsintermediary comp_4684official cnamed resultintermediary comp_4685official d
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.MapCodec<RpcMethodInfo> private final StringThe field for thedescriptionrecord component.private final List<RpcRequestParameter> The field for theparamsrecord component.private final Optional<RpcResponseResult> The field for theresultrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionRpcMethodInfo(String string, List<RpcRequestParameter> list, Optional<RpcResponseResult> optional) RpcMethodInfo(String string, @Nullable RpcRequestParameter rpcRequestParameter, @Nullable RpcResponseResult rpcResponseResult) -
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.method_74848(Identifier identifier) params()Returns the value of theparamsrecord component.result()Returns the value of theresultrecord component.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. -
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 aLatt;a:Lcom/mojang/serialization/MapCodec;
-
-
Constructor Details
-
RpcMethodInfo
public RpcMethodInfo(String string, @Nullable @Nullable RpcRequestParameter rpcRequestParameter, @Nullable @Nullable RpcResponseResult rpcResponseResult) -
RpcMethodInfo
public RpcMethodInfo(String string, List<RpcRequestParameter> list, Optional<RpcResponseResult> optional)
-
-
Method Details
-
method_74848
- Mappings:
Namespace Name Mixin selector named method_74848Lnet/minecraft/server/dedicated/management/RpcMethodInfo;method_74848(Lnet/minecraft/util/Identifier;)Lnet/minecraft/server/dedicated/management/RpcMethodInfo$class_12057;intermediary method_74848Lnet/minecraft/class_11817;method_74848(Lnet/minecraft/class_2960;)Lnet/minecraft/class_11817$class_12057;official aLatt;a(Lamj;)Latt$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
-