Record Class OutgoingRpcMethod.Parameterized<Params,Result>
java.lang.Object
java.lang.Record
net.minecraft.server.dedicated.management.OutgoingRpcMethod.Parameterized<Params,Result>
- Record Components:
info-attributes-paramsCodec-resultCodec-
- All Implemented Interfaces:
OutgoingRpcMethod<Params,Result>
- Enclosing interface:
OutgoingRpcMethod<Params,Result>
public static record OutgoingRpcMethod.Parameterized<Params,Result> (RpcMethodInfo info, OutgoingRpcMethod.Attributes attributes, com.mojang.serialization.Codec<Params> paramsCodec, com.mojang.serialization.Codec<Result> resultCodec)
extends Record
implements OutgoingRpcMethod<Params,Result>
- Mappings:
Namespace Name named net/minecraft/server/dedicated/management/OutgoingRpcMethod$Parameterizedintermediary net/minecraft/class_11808$class_11809official atp$cnamed infointermediary comp_4668official bnamed attributesintermediary comp_4909official cnamed paramsCodecintermediary comp_4669official dnamed resultCodecintermediary comp_4670official e
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.server.dedicated.management.OutgoingRpcMethod
OutgoingRpcMethod.Attributes, OutgoingRpcMethod.Builder<T extends OutgoingRpcMethod<?,?>>, OutgoingRpcMethod.Factory<T extends OutgoingRpcMethod<?, ?>>, OutgoingRpcMethod.Notification<Params>, OutgoingRpcMethod.Parameterized<Params, Result>, OutgoingRpcMethod.Parameterless<Result>, OutgoingRpcMethod.Simple -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final OutgoingRpcMethod.AttributesThe field for theattributesrecord component.private final RpcMethodInfoThe field for theinforecord component.private final com.mojang.serialization.Codec<Params> The field for theparamsCodecrecord component.private final com.mojang.serialization.Codec<Result> The field for theresultCodecrecord component.Fields inherited from interface net.minecraft.server.dedicated.management.OutgoingRpcMethod
NOTIFICATION_PREFIX -
Constructor Summary
ConstructorsConstructorDescriptionParameterized(RpcMethodInfo rpcMethodInfo, OutgoingRpcMethod.Attributes attributes, com.mojang.serialization.Codec<Params> codec, com.mojang.serialization.Codec<Result> codec2) -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theattributesrecord component.decodeResult(JsonElement result) encodeParams(Params params) final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.info()Returns the value of theinforecord component.com.mojang.serialization.Codec<Params> Returns the value of theparamsCodecrecord component.com.mojang.serialization.Codec<Result> Returns the value of theresultCodecrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
info
The field for theinforecord component. -
attributes
The field for theattributesrecord component. -
paramsCodec
The field for theparamsCodecrecord component. -
resultCodec
The field for theresultCodecrecord component.
-
-
Constructor Details
-
Parameterized
public Parameterized(RpcMethodInfo rpcMethodInfo, OutgoingRpcMethod.Attributes attributes, com.mojang.serialization.Codec<Params> codec, com.mojang.serialization.Codec<Result> codec2)
-
-
Method Details
-
encodeParams
- Specified by:
encodeParamsin interfaceOutgoingRpcMethod<Params,Result> - Mappings:
Namespace Name Mixin selector named encodeParamsLnet/minecraft/server/dedicated/management/OutgoingRpcMethod;encodeParams(Ljava/lang/Object;)Lcom/google/gson/JsonElement;intermediary method_73687Lnet/minecraft/class_11808;method_73687(Ljava/lang/Object;)Lcom/google/gson/JsonElement;official aLatp;a(Ljava/lang/Object;)Lcom/google/gson/JsonElement;
-
decodeResult
- Specified by:
decodeResultin interfaceOutgoingRpcMethod<Params,Result> - Mappings:
Namespace Name Mixin selector named decodeResultLnet/minecraft/server/dedicated/management/OutgoingRpcMethod;decodeResult(Lcom/google/gson/JsonElement;)Ljava/lang/Object;intermediary method_73682Lnet/minecraft/class_11808;method_73682(Lcom/google/gson/JsonElement;)Ljava/lang/Object;official aLatp;a(Lcom/google/gson/JsonElement;)Ljava/lang/Object;
-
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). -
info
Returns the value of theinforecord component.- Specified by:
infoin interfaceOutgoingRpcMethod<Params,Result> - Returns:
- the value of the
inforecord component
-
attributes
Returns the value of theattributesrecord component.- Specified by:
attributesin interfaceOutgoingRpcMethod<Params,Result> - Returns:
- the value of the
attributesrecord component
-
paramsCodec
Returns the value of theparamsCodecrecord component.- Returns:
- the value of the
paramsCodecrecord component
-
resultCodec
Returns the value of theresultCodecrecord component.- Returns:
- the value of the
resultCodecrecord component
-