Record Class IncomingRpcMethod.Parameterized<Params,Result>
java.lang.Object
java.lang.Record
net.minecraft.server.dedicated.management.IncomingRpcMethod.Parameterized<Params,Result>
- Record Components:
methodInfo-paramsCodec-resultCodec-handler-
- All Implemented Interfaces:
IncomingRpcMethod
- Enclosing interface:
IncomingRpcMethod
public static record IncomingRpcMethod.Parameterized<Params,Result> (RpcMethodInfo methodInfo, com.mojang.serialization.Codec<Params> paramsCodec, com.mojang.serialization.Codec<Result> resultCodec, IncomingRpcMethod.ParameterizedHandler<Params,Result> handler)
extends Record
implements IncomingRpcMethod
- Mappings:
Namespace Name named net/minecraft/server/dedicated/management/IncomingRpcMethod$Parameterizedintermediary net/minecraft/class_11796$class_11798official ati$bnamed methodInfointermediary comp_4662official anamed paramsCodecintermediary comp_4663official bnamed resultCodecintermediary comp_4664official cnamed handlerintermediary comp_4665official d
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.server.dedicated.management.IncomingRpcMethod
IncomingRpcMethod.Builder<T extends IncomingRpcMethod>, IncomingRpcMethod.Parameterized<Params,Result>, IncomingRpcMethod.ParameterizedHandler<Params, Result>, IncomingRpcMethod.Parameterless<Result>, IncomingRpcMethod.ParameterlessHandler<Result> -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final IncomingRpcMethod.ParameterizedHandler<Params, Result> The field for thehandlerrecord component.private final RpcMethodInfoThe field for themethodInforecord 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. -
Constructor Summary
ConstructorsConstructorDescriptionParameterized(RpcMethodInfo rpcMethodInfo, com.mojang.serialization.Codec<Params> codec, com.mojang.serialization.Codec<Result> codec2, IncomingRpcMethod.ParameterizedHandler<Params, Result> parameterizedHandler) -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.handle(ManagementHandlerDispatcher dispatcher, @Nullable JsonElement parameters, ManagementConnectionId remote) handler()Returns the value of thehandlerrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of themethodInforecord 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
-
methodInfo
The field for themethodInforecord component. -
paramsCodec
The field for theparamsCodecrecord component. -
resultCodec
The field for theresultCodecrecord component. -
handler
The field for thehandlerrecord component.
-
-
Constructor Details
-
Parameterized
public Parameterized(RpcMethodInfo rpcMethodInfo, com.mojang.serialization.Codec<Params> codec, com.mojang.serialization.Codec<Result> codec2, IncomingRpcMethod.ParameterizedHandler<Params, Result> parameterizedHandler)
-
-
Method Details
-
handle
public JsonElement handle(ManagementHandlerDispatcher dispatcher, @Nullable @Nullable JsonElement parameters, ManagementConnectionId remote) - Specified by:
handlein interfaceIncomingRpcMethod- Mappings:
Namespace Name Mixin selector named handleLnet/minecraft/server/dedicated/management/IncomingRpcMethod;handle(Lnet/minecraft/server/dedicated/management/dispatch/ManagementHandlerDispatcher;Lcom/google/gson/JsonElement;Lnet/minecraft/server/dedicated/management/network/ManagementConnectionId;)Lcom/google/gson/JsonElement;intermediary method_73621Lnet/minecraft/class_11796;method_73621(Lnet/minecraft/class_11827;Lcom/google/gson/JsonElement;Lnet/minecraft/class_11838;)Lcom/google/gson/JsonElement;official aLati;a(Lauf;Lcom/google/gson/JsonElement;Lauw;)Lcom/google/gson/JsonElement;
-
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). -
methodInfo
Returns the value of themethodInforecord component.- Specified by:
methodInfoin interfaceIncomingRpcMethod- Returns:
- the value of the
methodInforecord 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
-
handler
Returns the value of thehandlerrecord component.- Returns:
- the value of the
handlerrecord component
-