Record Class IncomingRpcMethod.Parameterless<Result>
java.lang.Object
java.lang.Record
net.minecraft.server.dedicated.management.IncomingRpcMethod.Parameterless<Result>
- Record Components:
methodInfo-resultCodec-handler-
- All Implemented Interfaces:
IncomingRpcMethod
- Enclosing interface:
IncomingRpcMethod
public static record IncomingRpcMethod.Parameterless<Result>(RpcMethodInfo methodInfo, com.mojang.serialization.Codec<Result> resultCodec, IncomingRpcMethod.ParameterlessHandler<Result> handler)
extends Record
implements IncomingRpcMethod
- Mappings:
Namespace Name named net/minecraft/server/dedicated/management/IncomingRpcMethod$Parameterlessintermediary net/minecraft/class_11796$class_11799official ati$cnamed methodInfointermediary comp_4662official anamed resultCodecintermediary comp_4666official bnamed handlerintermediary comp_4667official c
-
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.ParameterlessHandler<Result> The field for thehandlerrecord component.private final RpcMethodInfoThe field for themethodInforecord component.private final com.mojang.serialization.Codec<Result> The field for theresultCodecrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionParameterless(RpcMethodInfo rpcMethodInfo, com.mojang.serialization.Codec<Result> codec, IncomingRpcMethod.ParameterlessHandler<Result> parameterlessHandler) -
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<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. -
resultCodec
The field for theresultCodecrecord component. -
handler
The field for thehandlerrecord component.
-
-
Constructor Details
-
Parameterless
public Parameterless(RpcMethodInfo rpcMethodInfo, com.mojang.serialization.Codec<Result> codec, IncomingRpcMethod.ParameterlessHandler<Result> parameterlessHandler)
-
-
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
-
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
-