Record Class IncomingRpcMethod.Parameterized<Params,Result>
java.lang.Object
java.lang.Record
net.minecraft.server.dedicated.management.IncomingRpcMethod.Parameterized<Params,Result>
- Record Components:
info-attributes-paramsCodec-resultCodec-handler-
- All Implemented Interfaces:
IncomingRpcMethod
- Enclosing interface:
IncomingRpcMethod
public static record IncomingRpcMethod.Parameterized<Params,Result> (RpcMethodInfo info, IncomingRpcMethod.Attributes attributes, 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$dnamed infointermediary comp_4662official anamed attributesintermediary comp_4907official bnamed paramsCodecintermediary comp_4663official cnamed resultCodecintermediary comp_4664official dnamed handlerintermediary comp_4665official e
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.server.dedicated.management.IncomingRpcMethod
IncomingRpcMethod.Attributes, IncomingRpcMethod.Builder<T extends IncomingRpcMethod>, IncomingRpcMethod.Factory<T extends IncomingRpcMethod>, IncomingRpcMethod.Parameterized<Params,Result>, IncomingRpcMethod.ParameterizedHandler<Params, Result>, IncomingRpcMethod.Parameterless<Result>, IncomingRpcMethod.ParameterlessHandler<Result> -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final IncomingRpcMethod.AttributesThe field for theattributesrecord component.private final IncomingRpcMethod.ParameterizedHandler<Params, Result> The field for thehandlerrecord 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. -
Constructor Summary
ConstructorsConstructorDescriptionParameterized(RpcMethodInfo rpcMethodInfo, IncomingRpcMethod.Attributes attributes, com.mojang.serialization.Codec<Params> codec, com.mojang.serialization.Codec<Result> codec2, IncomingRpcMethod.ParameterizedHandler<Params, Result> parameterizedHandler) -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theattributesrecord component.final 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.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. -
handler
The field for thehandlerrecord component.
-
-
Constructor Details
-
Parameterized
public Parameterized(RpcMethodInfo rpcMethodInfo, IncomingRpcMethod.Attributes attributes, 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;Lauy;)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). -
info
Returns the value of theinforecord component.- Specified by:
infoin interfaceIncomingRpcMethod- Returns:
- the value of the
inforecord component
-
attributes
Returns the value of theattributesrecord component.- Specified by:
attributesin interfaceIncomingRpcMethod- 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
-
handler
Returns the value of thehandlerrecord component.- Returns:
- the value of the
handlerrecord component
-